[PATCH] ppc64: cleanup iseries runlight support
commit6dc2f0c7df6cefda5932ac8bcd9ca5ef45de36ee
authorAnton Blanchard <anton@samba.org>
Thu, 2 Jun 2005 21:02:02 +0000 (2 14:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Jun 2005 22:12:30 +0000 (2 15:12 -0700)
treece3f5ba4f99adfbc7adf4242d5bc76a8d0c3fd69
parent79f1248962cfa1e11a5610e0349bc3515687516d
[PATCH] ppc64: cleanup iseries runlight support

The iseries has a bar graph on the front panel that shows how busy it is.
The operating system sets and clears a bit in the CTRL register to control
it.

Instead of going to the complexity of using a thread info bit, just set and
clear it in the idle loop.

Also create two helper functions, ppc64_runlatch_on and ppc64_runlatch_off.

Finally don't use the short form of the SPR defines.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/entry.S
arch/ppc64/kernel/head.S
arch/ppc64/kernel/idle.c
arch/ppc64/kernel/process.c
arch/ppc64/kernel/sysfs.c
include/asm-ppc64/processor.h
include/asm-ppc64/thread_info.h