]> bbs.cooldavid.org Git - net-next-2.6.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)
commite1c805309d19c69d4ebeac38724076fa86feacdf
tree73886783aac7c489a29f3e5eec56cbc2371a12dd
parentb1ad171efa089ae26aba750d747d8149a4f860d5
[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