diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-31 09:11:41 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-12-31 09:11:48 -0500 |
commit | 9cfb9b3c3a7361c793c031e9c3583b177ac5debd (patch) | |
tree | b735c71e6fee3fd1464c21ce53f93d98ceddf90d /arch/s390/include/asm/cpu.h | |
parent | 6f43092441bda528dd38f2dc6c1e2522c5079fb7 (diff) |
[PATCH] improve idle cputime accounting
Distinguish the cputime of the idle process where idle is actually using
cpu cycles from the cputime where idle is sleeping on an enabled wait psw.
The former is accounted as system time, the later as idle time.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/cpu.h')
-rw-r--r-- | arch/s390/include/asm/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/cpu.h b/arch/s390/include/asm/cpu.h index 89456df43c4a..d60a2eefb17b 100644 --- a/arch/s390/include/asm/cpu.h +++ b/arch/s390/include/asm/cpu.h | |||
@@ -21,12 +21,12 @@ struct s390_idle_data { | |||
21 | 21 | ||
22 | DECLARE_PER_CPU(struct s390_idle_data, s390_idle); | 22 | DECLARE_PER_CPU(struct s390_idle_data, s390_idle); |
23 | 23 | ||
24 | void s390_idle_leave(void); | 24 | void vtime_start_cpu(void); |
25 | 25 | ||
26 | static inline void s390_idle_check(void) | 26 | static inline void s390_idle_check(void) |
27 | { | 27 | { |
28 | if ((&__get_cpu_var(s390_idle))->idle_enter != 0ULL) | 28 | if ((&__get_cpu_var(s390_idle))->idle_enter != 0ULL) |
29 | s390_idle_leave(); | 29 | vtime_start_cpu(); |
30 | } | 30 | } |
31 | 31 | ||
32 | #endif /* _ASM_S390_CPU_H_ */ | 32 | #endif /* _ASM_S390_CPU_H_ */ |