From 0ddc4aa5824b5981b53564c6c27d797fdf8f5de5 Mon Sep 17 00:00:00 2001 From: bjh21 Date: Sat, 7 Oct 2006 20:51:47 +0000 Subject: [PATCH] Make splsched() and splstatclock() into aliases for splhigh(), since practically no hardware interrupts can occur above splstatclock(). This also makes splsched() faster, which is good since it's called an awful lot. --- sys/arch/acorn26/include/intr.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/arch/acorn26/include/intr.h b/sys/arch/acorn26/include/intr.h index 7843a1799901..ed1eb890a9e2 100644 --- a/sys/arch/acorn26/include/intr.h +++ b/sys/arch/acorn26/include/intr.h @@ -1,4 +1,4 @@ -/* $NetBSD: intr.h,v 1.6 2006/01/01 14:24:33 yamt Exp $ */ +/* $NetBSD: intr.h,v 1.7 2006/10/07 20:51:47 bjh21 Exp $ */ /*- * Copyright (c) 1998, 2000 Ben Harris * All rights reserved. @@ -53,9 +53,9 @@ #define IPL_AUDIO 7 #define IPL_SERIAL 8 #define IPL_CLOCK 9 -#define IPL_STATCLOCK 10 -#define IPL_SCHED 11 -#define IPL_HIGH 12 +#define IPL_HIGH 10 +#define IPL_STATCLOCK IPL_HIGH +#define IPL_SCHED IPL_HIGH #define IPL_LOCK IPL_HIGH #define NIPL IPL_HIGH + 1 @@ -73,10 +73,9 @@ #define splaudio() raisespl(IPL_AUDIO) #define splserial() raisespl(IPL_SERIAL) #define splclock() raisespl(IPL_CLOCK) -#define splstatclock() raisespl(IPL_STATCLOCK) -#define splsched() raisespl(IPL_SCHED) -/* #define splsched() splhigh() */ +#define splstatclock() splhigh() +#define splsched() splhigh() #define spllock() splhigh() #define splraiseipl(x) (((x) == IPL_HIGH) ? splhigh() : raisespl(x))