From: Matt Mackall <mpm@selenic.com>
To: linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Subject: [PATCH] enable suspend-on-halt for NS Geode
Date: Fri, 2 Apr 2004 22:27:09 -0600 [thread overview]
Message-ID: <20040403042709.GX6248@waste.org> (raw)
This enables deep powersaving mode on Geode boxes
From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
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(-)
diff -puN arch/i386/kernel/cpu/cyrix.c~geode arch/i386/kernel/cpu/cyrix.c
--- tiny/arch/i386/kernel/cpu/cyrix.c~geode 2004-03-20 12:14:39.000000000 -0600
+++ tiny-mpm/arch/i386/kernel/cpu/cyrix.c 2004-03-20 12:14:39.000000000 -0600
@@ -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 */
_
--
Matt Mackall : http://www.selenic.com : Linux development and consulting
reply other threads:[~2004-04-03 4:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040403042709.GX6248@waste.org \
--to=mpm@selenic.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®