Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102078358
D43571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43571.diff
View Options
diff --git a/sys/sys/kassert.h b/sys/sys/kassert.h
--- a/sys/sys/kassert.h
+++ b/sys/sys/kassert.h
@@ -179,17 +179,6 @@
#define CRITICAL_ASSERT(td) \
KASSERT((td)->td_critnest >= 1, ("Not in critical section"))
-/*
- * If we have already panic'd and this is the thread that called
- * panic(), then don't block on any mutexes but silently succeed.
- * Otherwise, the kernel will deadlock since the scheduler isn't
- * going to run the thread that holds any lock we need.
- */
-#define SCHEDULER_STOPPED_TD(td) ({ \
- MPASS((td) == curthread); \
- __predict_false((td)->td_stopsched); \
-})
-#define SCHEDULER_STOPPED() SCHEDULER_STOPPED_TD(curthread)
#endif /* _KERNEL */
#endif /* _SYS_KASSERT_H_ */
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -99,6 +99,18 @@
#include <sys/pcpu.h> /* curthread */
#include <sys/kpilite.h>
+/*
+ * If we have already panic'd and this is the thread that called
+ * panic(), then don't block on any mutexes but silently succeed.
+ * Otherwise, the kernel will deadlock since the scheduler isn't
+ * going to run the thread that holds any lock we need.
+ */
+#define SCHEDULER_STOPPED_TD(td) ({ \
+ MPASS((td) == curthread); \
+ __predict_false((td)->td_stopsched); \
+})
+#define SCHEDULER_STOPPED() SCHEDULER_STOPPED_TD(curthread)
+
extern int osreldate;
extern const void *zero_region; /* address space maps to a zeroed page */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 8:44 AM (21 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14531548
Default Alt Text
D43571.diff (1 KB)
Attached To
Mode
D43571: SCHEDULER_STOPPED(): Move it (back) to 'systm.h'
Attached
Detach File
Event Timeline
Log In to Comment