Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode remove thunk_sigblock/thunk_sigun...



details:   https://anonhg.NetBSD.org/src/rev/2b14de7371fd
branches:  trunk
changeset: 769281:2b14de7371fd
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Sep 05 18:17:44 2011 +0000

description:
remove thunk_sigblock/thunk_sigunblock calls

diffstat:

 sys/arch/usermode/usermode/intr.c |  15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diffs (49 lines):

diff -r 88390e4444a6 -r 2b14de7371fd sys/arch/usermode/usermode/intr.c
--- a/sys/arch/usermode/usermode/intr.c Mon Sep 05 18:17:08 2011 +0000
+++ b/sys/arch/usermode/usermode/intr.c Mon Sep 05 18:17:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.2 2011/09/05 11:12:51 jmcneill Exp $ */
+/* $NetBSD: intr.c,v 1.3 2011/09/05 18:17:44 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.2 2011/09/05 11:12:51 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.3 2011/09/05 18:17:44 jmcneill Exp $");
 
 #include <sys/types.h>
 
@@ -35,18 +35,12 @@
 #include <machine/thunk.h>
 
 static int usermode_x = IPL_NONE;
-static bool usermode_sigalrm_blocked = false;
 
 int
 splraise(int x)
 {
        int oldx = usermode_x;
 
-       if (x > IPL_VM && usermode_sigalrm_blocked == false) {
-               thunk_sigblock(SIGALRM);
-               usermode_sigalrm_blocked = true;
-       }
-
        if (x > usermode_x)
                usermode_x = x;
 
@@ -56,11 +50,6 @@
 void
 spllower(int x)
 {
-       if (x <= IPL_VM && usermode_sigalrm_blocked == true) {
-               thunk_sigunblock(SIGALRM);
-               usermode_sigalrm_blocked = false;
-       }
-
        if (usermode_x > x)
                usermode_x = x;
 }



Home | Main Index | Thread Index | Old Index