From f756d5bed6346f4902b1da276e52098882a7a66b Mon Sep 17 00:00:00 2001 From: attilio Date: Wed, 4 May 2011 20:29:40 +0000 Subject: Revert md_assert_preempt() introduction. Discussed with: jeff, jhb --- sys/amd64/amd64/mp_machdep.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'sys/amd64/amd64/mp_machdep.c') diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index 70ba466..8e8dc67 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -1428,22 +1428,6 @@ cpususpend_handler(void) intr_restore(rf); } -void -md_assert_nopreempt(void) -{ -#ifdef INVARIANTS - struct thread *td; - register_t rflags; - - td = curthread; - rflags = read_rflags(); - - if ((rflags & PSL_I) != 0 && td->td_critnest <= 0) - panic("Preemption still allowed, thread %s\n", - (td->td_pinned <= 0) ? "not pinned" : "pinned"); -#endif -} - /* * This is called once the rest of the system is up and running and we're * ready to let the AP's out of the pen. -- cgit v1.1