]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Add per-cpu idle time / idle count sysfs attributes.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 22 Oct 2007 10:52:39 +0000 (12:52 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 22 Oct 2007 10:52:47 +0000 (12:52 +0200)
commitf7b890aee8058f120f482c658e4993cf6490b84d
tree871aa91c51d713d7842ba1eb8661bde54d102842
parent757805111b017da723054c77b8a1ff2823c57126
[S390] Add per-cpu idle time / idle count sysfs attributes.

Add two new sysfs entries per cpu: idle_count and idle_time.
idle_count contains the number of times a cpu went into idle state.
idle_time contains the time a cpu spent in idle state in microseconds.
This can be used e.g. by powertop to tell how often idle state is
entered and left.

# cat /sys/devices/system/cpu/cpu0/idle_count
504
# cat /sys/devices/system/cpu/cpu0/idle_time
469734037 us

Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/process.c
arch/s390/kernel/smp.c
include/asm-s390/cpu.h [new file with mode: 0644]