sched: guest CPU accounting: add guest-CPU /proc/stat field
authorLaurent Vivier <Laurent.Vivier@bull.net>
Mon, 15 Oct 2007 15:00:19 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:19 +0000 (17:00 +0200)
commit5e84cfde51cf303d368fcb48f22059f37b3872de
tree59a55bbc56944e06c8e5940a58ff667939b92f69
parent6323469f9b72530eb90c96ba162cc70f2f4611de
sched: guest CPU accounting: add guest-CPU /proc/stat field

as recent CPUs introduce a third running state, after "user" and
"system", we need a new field, "guest", in cpustat to store the time
used by the CPU to run virtual CPU. Modify /proc/stat to display this
new field.

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Acked-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/proc_misc.c
include/linux/kernel_stat.h