Lines Matching full:idle
3 * Idle functions for s390.
26 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); in account_idle_time_irq() local
35 this_cpu_add(mt_cycles[i], cycles_new[i] - idle->mt_cycles_enter[i]); in account_idle_time_irq()
38 idle_time = lc->int_clock - idle->clock_idle_enter; in account_idle_time_irq()
40 lc->steal_timer += idle->clock_idle_enter - lc->last_update_clock; in account_idle_time_irq()
43 lc->system_timer += lc->last_update_timer - idle->timer_idle_enter; in account_idle_time_irq()
46 /* Account time spent with enabled wait psw loaded as idle time. */ in account_idle_time_irq()
47 WRITE_ONCE(idle->idle_time, READ_ONCE(idle->idle_time) + idle_time); in account_idle_time_irq()
48 WRITE_ONCE(idle->idle_count, READ_ONCE(idle->idle_count) + 1); in account_idle_time_irq()
54 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); in arch_cpu_idle() local
63 stcctm(MT_DIAG, smp_cpu_mtid, (u64 *)&idle->mt_cycles_enter); in arch_cpu_idle()
64 idle->clock_idle_enter = get_tod_clock_fast(); in arch_cpu_idle()
65 idle->timer_idle_enter = get_cpu_timer(); in arch_cpu_idle()
73 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); in show_idle_count() local
75 return sysfs_emit(buf, "%lu\n", READ_ONCE(idle->idle_count)); in show_idle_count()
82 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); in show_idle_time() local
84 return sysfs_emit(buf, "%lu\n", READ_ONCE(idle->idle_time) >> 12); in show_idle_time()