summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-02-23 02:19:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-02-23 02:19:33 +0000
commit8df24618fda5f8a1a2fa6b59811c1f1df63fcbdb (patch)
treeb015ef5820dac7f74196f8738f23d23aceea1b82 /sys/arch/zaurus/dev
parent5d2a9f33ba22525df75f3864e21eb3fc27448ee5 (diff)
do not permit a suspend if the lid is closed; uwe ok
Diffstat (limited to 'sys/arch/zaurus/dev')
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c
index 6d822731032..eaeff76d577 100644
--- a/sys/arch/zaurus/dev/zaurus_kbd.c
+++ b/sys/arch/zaurus/dev/zaurus_kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_kbd.c,v 1.15 2005/02/22 22:12:10 deraadt Exp $ */
+/* $OpenBSD: zaurus_kbd.c,v 1.16 2005/02/23 02:19:32 deraadt Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -439,9 +439,11 @@ int
zkbd_on(void *v)
{
#if NAPM > 0
+ struct zkbd_softc *sc = v;
extern int apm_suspends;
- if (ratecheck(&zkbdonlasttime, &zkbdoninterval))
+ if (sc->sc_hinge != 3 &&
+ ratecheck(&zkbdonlasttime, &zkbdoninterval))
apm_suspends++;
#endif
#if 0