Lines Matching defs:now
424 static void kcpustat_idle_stop(struct kernel_cpustat *kc, u64 now)
434 delta = now - kc->idle_entrytime;
453 kc->idle_entrytime = now;
458 static void kcpustat_idle_start(struct kernel_cpustat *kc, u64 now)
465 kc->idle_entrytime = now;
470 void kcpustat_dyntick_stop(u64 now, u64 tick_start)
486 if (now > tick_start)
487 kc->idle_tick_overlap += now - tick_start;
488 kcpustat_idle_stop(kc, now);
507 void kcpustat_dyntick_start(u64 now)
514 kc->idle_dyntick_entry = now;
515 kcpustat_idle_start(kc, now);
519 void kcpustat_irq_enter(u64 now)
525 kcpustat_idle_stop(kc, now);
528 void kcpustat_irq_exit(u64 now)
541 kcpustat_idle_start(kc, now);
545 bool compute_delta, u64 now)
558 if (kc->idle_elapse && compute_delta && now > kc->idle_entrytime) {
559 u64 delta = now - kc->idle_entrytime;
589 bool compute_delta, ktime_t now)
598 ktime_t now = ktime_get();
604 res = kcpustat_field_dyntick(cpu, idx, compute_delta, now);
609 *last_update_time = ktime_to_us(now);