enable suspend-on-halt for NS Geode
PATCH 1/1 enable suspend-on-halt for NS Geode
This enables deep powersaving mode on Geode boxes
From: Zwane Mwaikambo <[email protected]>
Subject: NS Geode, enable Suspend-on-Halt
Index: linux-2.6.0-test11/arch/i386/kernel/cpu/cyrix.c
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test11/arch/i386/kernel/cpu/cyrix.c,v retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 cyrix.c
tiny-mpm/arch/i386/kernel/cpu/cyrix.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
arch/i386/kernel/cpu/cyrix.c renamed from arch/i386/kernel/cpu/cyrix.c~geode +4 -1
@@ -167,7 +167,10 @@ static void __init geode_configure(void)unsigned long flags;u8 ccr3, ccr4;local_irq_save (flags); - + +/* Suspend on halt power saving and enable #SUSP pin */ +setCx86 (CX86_CCR2 ,getCx86 (CX86_CCR2 ) |0x88 ); + ccr3 =getCx86 (CX86_CCR3 );setCx86 (CX86_CCR3 , (ccr3 &0x0f ) |0x10 );/* Enable */
_
Signature · 1 line
Matt Mackall : http://www.selenic.com : Linux development and consulting