From 5bebf8b402d84a299d7d9a1fc28ec5e46c7ccb12 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 21 Nov 2019 18:49:54 +0000 Subject: [PATCH] Remove two obsolete comments that reference splhigh/splx. --- sys/arm/include/profile.h | 6 ------ sys/mips/include/profile.h | 7 ------- 2 files changed, 13 deletions(-) diff --git a/sys/arm/include/profile.h b/sys/arm/include/profile.h index a4973175f3bd..6fcbbdc2b83a 100644 --- a/sys/arm/include/profile.h +++ b/sys/arm/include/profile.h @@ -114,12 +114,6 @@ void user(void); #include #include -/* - * splhigh() and splx() are heavyweight, and call mcount(). Therefore - * we disabled interrupts (IRQ, but not FIQ) directly on the CPU. - * - * We're lucky that the CPSR and 's' both happen to be 'int's. - */ #define MCOUNT_ENTER(s) {s = intr_disable(); } /* kill IRQ */ #define MCOUNT_EXIT(s) {intr_restore(s); } /* restore old value */ diff --git a/sys/mips/include/profile.h b/sys/mips/include/profile.h index 3f04e298c7c5..5968deb60b43 100644 --- a/sys/mips/include/profile.h +++ b/sys/mips/include/profile.h @@ -76,13 +76,6 @@ ".set at"); #ifdef _KERNEL -/* - * The following two macros do splhigh and splx respectively. - * They have to be defined this way because these are real - * functions on the MIPS, and we do not want to invoke mcount - * recursively. - */ - #define MCOUNT_DECL(s) u_long s; #ifdef SMP extern int mcount_lock;