From c0bc3a2a6f3f3655042f182d7620c7b65d8aa5f8 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 13 Oct 2007 07:18:03 +0000 Subject: Do not splhigh() before invoking sched_exit(), sched_exit() will do it better. --- sys/arch/hp300/hp300/vm_machdep.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/arch/hp300') diff --git a/sys/arch/hp300/hp300/vm_machdep.c b/sys/arch/hp300/hp300/vm_machdep.c index abc6af74605..eba6f968d8e 100644 --- a/sys/arch/hp300/hp300/vm_machdep.c +++ b/sys/arch/hp300/hp300/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.44 2007/10/10 15:53:51 art Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.45 2007/10/13 07:17:59 miod Exp $ */ /* $NetBSD: vm_machdep.c,v 1.60 2001/07/06 05:53:35 chs Exp $ */ /* @@ -126,15 +126,12 @@ cpu_fork(p1, p2, stack, stacksize, func, arg) /* * cpu_exit is called as the last action during exit. * - * Block context switches and then call switch_exit() which will - * switch to another process thus we never return. + * Call switch_exit() which will switch to another process thus we never return. */ void cpu_exit(p) struct proc *p; { - (void)splhigh(); - pmap_deactivate(p); sched_exit(p); } -- cgit v1.2.3