summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-08-11 21:22:45 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-08-11 21:22:45 +0000
commit14f70a1460722d7d4596558d56946035e3e55eee (patch)
treed5049206bfb1cf55a28cce9201bcab4d78566035 /sys/arch/i386/isa
parent349d31c323e210525f6fbdaf914cdfd8cd69b818 (diff)
Disable the RTC the periodic interrupt. Leaving it enabled causes the
Dell Inspirion 4150 to wake up immediately even though RTC_EN isn't set in the PM1 Enable register. ok deraadt@, mlarkin@
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r--sys/arch/i386/isa/clock.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/clock.c b/sys/arch/i386/isa/clock.c
index 81a51342c48..596a37946dd 100644
--- a/sys/arch/i386/isa/clock.c
+++ b/sys/arch/i386/isa/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.44 2010/08/10 02:23:31 marco Exp $ */
+/* $OpenBSD: clock.c,v 1.45 2010/08/11 21:22:44 kettenis Exp $ */
/* $NetBSD: clock.c,v 1.39 1996/05/12 23:11:54 mycroft Exp $ */
/*-
@@ -419,6 +419,12 @@ rtcstart(void)
timeout_add(&rtcdrain_timeout, 1);
}
+void
+rtcstop(void)
+{
+ mc146818_write(NULL, MC_REGB, MC_REGB_24HR);
+}
+
int
rtcget(mc_todregs *regs)
{