]> err.no Git - linux-2.6/commit
[POWERPC] Update wait_state_cycles in the VPA
authorTony Breeds <tony@bakeyournoodle.com>
Mon, 17 Mar 2008 05:23:29 +0000 (16:23 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 25 Mar 2008 21:44:05 +0000 (08:44 +1100)
commit96366a8d3f17ee964802378d4a1f51fda86f070e
tree80ee328c588a1fbef0134c3ffcd8bb07267a22d8
parent71e91a0abb839f8d2372236d8fe0513c295ec717
[POWERPC] Update wait_state_cycles in the VPA

The hypervisor can look at the value in the wait_state_cycles field of
the VPA for an estimate of how busy dedicated processors are.
Currently, as the kernel never touches this field, we appear to be
100% busy.  This records the duration the kernel is in powersave and
passes that to the HV to provide a reasonable indication of
utilisation.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/setup.c