Skip to content

Commit ca998d4

Browse files
committed
rip out more of SPL
1 parent f4a40cf commit ca998d4

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

sys/arch/armv7/include/intr.h

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
#include <sys/proc.h>
5151
#include <sys/softintr.h>
5252

53-
int splraise(int);
54-
int spllower(int);
55-
void splx(int);
53+
int splraise(int);
54+
int spllower(int);
55+
void splx(int);
5656

5757
void arm_do_pending_intr(int);
5858
void arm_set_intr_handler(
@@ -71,7 +71,6 @@ struct arm_intr_func {
7171

7272
extern struct arm_intr_func arm_intr_func;
7373

74-
#define splhigh() splraise(IPL_HIGH)
7574
#define splsoft() splraise(IPL_SOFT)
7675
#define splsoftclock() splraise(IPL_SOFTCLOCK)
7776
#define splsoftnet() splraise(IPL_SOFTNET)
@@ -85,9 +84,6 @@ extern struct arm_intr_func arm_intr_func;
8584

8685
#define spl0() spllower(IPL_NONE)
8786

88-
#define splsched() splhigh()
89-
#define spllock() splhigh()
90-
9187
void *arm_intr_establish(int irqno, int level, int (*func)(void *),
9288
void *cookie, char *name);
9389
void arm_intr_disestablish(void *cookie);
@@ -97,20 +93,8 @@ const char *arm_intr_string(void *cookie);
9793
void arm_clock_register(void (*)(void), void (*)(u_int), void (*)(int),
9894
void (*)(void));
9995

100-
#ifdef DIAGNOSTIC
101-
/*
102-
* Although this function is implemented in MI code, it must be in this MD
103-
* header because we don't want this header to include MI includes.
104-
*/
105-
void splassert_fail(int, int, const char *);
106-
extern int splassert_ctl;
107-
void arm_splassert_check(int, const char *);
108-
#define splassert(__wantipl) do { /*nada */ } while (0)
109-
#define splsoftassert(wantipl) splassert(wantipl)
110-
#else
111-
#define splassert(wantipl) do { /* nothing */ } while (0)
112-
#define splsoftassert(wantipl) do { /* nothing */ } while (0)
113-
#endif
96+
#define splassert(wantipl) do { /* nothing */ } while (0)
97+
#define splsoftassert(wantipl) do { /* nothing */ } while (0)
11498

11599
struct intrsource {
116100
int is_maxlevel; /* max. IPL for this source */

0 commit comments

Comments
 (0)