diff options
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/cputime.h | 9 | ||||
-rw-r--r-- | arch/s390/include/asm/timer.h | 4 |
2 files changed, 3 insertions, 10 deletions
diff --git a/arch/s390/include/asm/cputime.h b/arch/s390/include/asm/cputime.h index c23c3900c304..24ef186a1c4f 100644 --- a/arch/s390/include/asm/cputime.h +++ b/arch/s390/include/asm/cputime.h | |||
@@ -170,24 +170,17 @@ struct s390_idle_data { | |||
170 | unsigned int sequence; | 170 | unsigned int sequence; |
171 | unsigned long long idle_count; | 171 | unsigned long long idle_count; |
172 | unsigned long long idle_enter; | 172 | unsigned long long idle_enter; |
173 | unsigned long long idle_exit; | ||
173 | unsigned long long idle_time; | 174 | unsigned long long idle_time; |
174 | int nohz_delay; | 175 | int nohz_delay; |
175 | }; | 176 | }; |
176 | 177 | ||
177 | DECLARE_PER_CPU(struct s390_idle_data, s390_idle); | 178 | DECLARE_PER_CPU(struct s390_idle_data, s390_idle); |
178 | 179 | ||
179 | void vtime_start_cpu(__u64 int_clock, __u64 enter_timer); | ||
180 | cputime64_t s390_get_idle_time(int cpu); | 180 | cputime64_t s390_get_idle_time(int cpu); |
181 | 181 | ||
182 | #define arch_idle_time(cpu) s390_get_idle_time(cpu) | 182 | #define arch_idle_time(cpu) s390_get_idle_time(cpu) |
183 | 183 | ||
184 | static inline void s390_idle_check(struct pt_regs *regs, __u64 int_clock, | ||
185 | __u64 enter_timer) | ||
186 | { | ||
187 | if (regs->psw.mask & PSW_MASK_WAIT) | ||
188 | vtime_start_cpu(int_clock, enter_timer); | ||
189 | } | ||
190 | |||
191 | static inline int s390_nohz_delay(int cpu) | 184 | static inline int s390_nohz_delay(int cpu) |
192 | { | 185 | { |
193 | return __get_cpu_var(s390_idle).nohz_delay != 0; | 186 | return __get_cpu_var(s390_idle).nohz_delay != 0; |
diff --git a/arch/s390/include/asm/timer.h b/arch/s390/include/asm/timer.h index 814243cafdfe..e63069ba39e3 100644 --- a/arch/s390/include/asm/timer.h +++ b/arch/s390/include/asm/timer.h | |||
@@ -33,8 +33,8 @@ struct vtimer_queue { | |||
33 | spinlock_t lock; | 33 | spinlock_t lock; |
34 | __u64 timer; /* last programmed timer */ | 34 | __u64 timer; /* last programmed timer */ |
35 | __u64 elapsed; /* elapsed time of timer expire values */ | 35 | __u64 elapsed; /* elapsed time of timer expire values */ |
36 | __u64 idle; /* temp var for idle */ | 36 | __u64 idle_enter; /* cpu timer on idle enter */ |
37 | int do_spt; /* =1: reprogram cpu timer in idle */ | 37 | __u64 idle_exit; /* cpu timer on idle exit */ |
38 | }; | 38 | }; |
39 | 39 | ||
40 | extern void init_virt_timer(struct vtimer_list *timer); | 40 | extern void init_virt_timer(struct vtimer_list *timer); |