Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Remove phony spl(9). XXX: This driver needs to ...
details: https://anonhg.NetBSD.org/src/rev/7c6c2399b35a
branches: trunk
changeset: 757306:7c6c2399b35a
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Aug 24 14:53:45 2010 +0000
description:
Remove phony spl(9). XXX: This driver needs to be cleaned up.
diffstat:
sys/dev/acpi/sony_acpi.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diffs (47 lines):
diff -r b6ab562a2018 -r 7c6c2399b35a sys/dev/acpi/sony_acpi.c
--- a/sys/dev/acpi/sony_acpi.c Tue Aug 24 13:35:32 2010 +0000
+++ b/sys/dev/acpi/sony_acpi.c Tue Aug 24 14:53:45 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sony_acpi.c,v 1.18 2010/04/15 07:02:24 jruoho Exp $ */
+/* $NetBSD: sony_acpi.c,v 1.19 2010/08/24 14:53:45 jruoho Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.18 2010/04/15 07:02:24 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.19 2010/08/24 14:53:45 jruoho Exp $");
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -327,7 +327,6 @@
struct sony_acpi_softc *sc = device_private(dv);
ACPI_STATUS rv;
ACPI_INTEGER arg;
- int s;
if (notify == SONY_NOTIFY_FnKeyEvent) {
rv = sony_acpi_eval_set_integer(hdl, "SN07", 0x202, &arg);
@@ -337,7 +336,6 @@
notify = arg & 0xff;
}
- s = spltty();
switch (notify) {
case SONY_NOTIFY_BrightnessDownPressed:
sony_acpi_brightness_down(dv);
@@ -373,11 +371,9 @@
case SONY_NOTIFY_ZoomReleased:
break;
default:
- aprint_debug_dev(dv, "unknown notify event 0x%x\n",
- notify);
+ aprint_debug_dev(dv, "unknown notify event 0x%x\n", notify);
break;
}
- splx(s);
}
static bool
Home |
Main Index |
Thread Index |
Old Index