Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hpc splimp -> splvm (it's questionable whether or no...



details:   https://anonhg.NetBSD.org/src/rev/232244c9afe5
branches:  trunk
changeset: 508522:232244c9afe5
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 12 19:45:25 2001 +0000

description:
splimp -> splvm (it's questionable whether or not this is really
the right level at all -- maybe splhigh?  Anyway, XXX comment added
as well).

diffstat:

 sys/dev/hpc/hpckbd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 05e121240e75 -r 232244c9afe5 sys/dev/hpc/hpckbd.c
--- a/sys/dev/hpc/hpckbd.c      Thu Apr 12 19:43:46 2001 +0000
+++ b/sys/dev/hpc/hpckbd.c      Thu Apr 12 19:45:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpckbd.c,v 1.2 2001/03/01 16:41:36 uch Exp $ */
+/*     $NetBSD: hpckbd.c,v 1.3 2001/04/12 19:45:25 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@@ -405,7 +405,7 @@
        if (!hc->hc_console || !hc->hc_polling || !hc->hc_ic)
                return;
 
-       s = splimp();
+       s = splvm();            /* XXX Questionable. */
        while (hpckbd_getevent(hc, type, data) == 0) /* busy loop */
                hpckbd_ic_poll(hc->hc_ic);
        splx(s);
@@ -415,7 +415,7 @@
 hpckbd_cnpollc(void *arg, int on)
 {
        struct hpckbd_core *hc = arg;
-       int s = splimp();
+       int s = splvm();        /* XXX See above. */
 
        hc->hc_polling = on;
 



Home | Main Index | Thread Index | Old Index