]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] /proc/stat idle field for idle cpus
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Apr 2009 11:58:08 +0000 (13:58 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Apr 2009 11:58:17 +0000 (13:58 +0200)
commit990643c02e7c094ece831e208630e9adf212896d
tree73886783aac7c489a29f3e5eec56cbc2371a12dd
parent547f7bebbe31720f21a3de9751ea09a374977bee
[S390] /proc/stat idle field for idle cpus

The cpu idle field in the output of /proc/stat is too small for cpus
that have been idle for more than a tick. Add the architecture hook
arch_idle_time that allows to add the not accounted idle time of a
sleeping cpu without waking the cpu.

The s390 implementation of arch_idle_time uses the already existing
s390_idle_data per_cpu variable to find the sleep time of a neighboring
idle cpu.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cputime.h
arch/s390/kernel/vtime.c
fs/proc/stat.c