Lines Matching refs:idle
26 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); in account_idle_time_irq() local
34 this_cpu_add(mt_cycles[i], cycles_new[i] - idle->mt_cycles_enter[i]); in account_idle_time_irq()
37 idle->clock_idle_exit = S390_lowcore.int_clock; in account_idle_time_irq()
38 idle->timer_idle_exit = S390_lowcore.sys_enter_timer; in account_idle_time_irq()
40 S390_lowcore.steal_timer += idle->clock_idle_enter - S390_lowcore.last_update_clock; in account_idle_time_irq()
41 S390_lowcore.last_update_clock = idle->clock_idle_exit; in account_idle_time_irq()
43 S390_lowcore.system_timer += S390_lowcore.last_update_timer - idle->timer_idle_enter; in account_idle_time_irq()
44 S390_lowcore.last_update_timer = idle->timer_idle_exit; in account_idle_time_irq()
49 struct s390_idle_data *idle = this_cpu_ptr(&s390_idle); in arch_cpu_idle() local
59 psw_idle(idle, psw_mask); in arch_cpu_idle()
62 raw_write_seqcount_begin(&idle->seqcount); in arch_cpu_idle()
63 idle_time = idle->clock_idle_exit - idle->clock_idle_enter; in arch_cpu_idle()
64 idle->clock_idle_enter = idle->clock_idle_exit = 0ULL; in arch_cpu_idle()
65 idle->idle_time += idle_time; in arch_cpu_idle()
66 idle->idle_count++; in arch_cpu_idle()
68 raw_write_seqcount_end(&idle->seqcount); in arch_cpu_idle()
75 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); in show_idle_count() local
80 seq = read_seqcount_begin(&idle->seqcount); in show_idle_count()
81 idle_count = READ_ONCE(idle->idle_count); in show_idle_count()
82 if (READ_ONCE(idle->clock_idle_enter)) in show_idle_count()
84 } while (read_seqcount_retry(&idle->seqcount, seq)); in show_idle_count()
93 struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id); in show_idle_time() local
97 seq = read_seqcount_begin(&idle->seqcount); in show_idle_time()
98 idle_time = READ_ONCE(idle->idle_time); in show_idle_time()
99 idle_enter = READ_ONCE(idle->clock_idle_enter); in show_idle_time()
100 idle_exit = READ_ONCE(idle->clock_idle_exit); in show_idle_time()
101 } while (read_seqcount_retry(&idle->seqcount, seq)); in show_idle_time()
118 struct s390_idle_data *idle = &per_cpu(s390_idle, cpu); in arch_cpu_idle_time() local
123 seq = read_seqcount_begin(&idle->seqcount); in arch_cpu_idle_time()
124 idle_enter = READ_ONCE(idle->clock_idle_enter); in arch_cpu_idle_time()
125 idle_exit = READ_ONCE(idle->clock_idle_exit); in arch_cpu_idle_time()
126 } while (read_seqcount_retry(&idle->seqcount, seq)); in arch_cpu_idle_time()