{
sigmask_t result;
cpuflags_t flags;
- extern int preempt_forbid_cnt;
/* Sleeping with IRQs disabled or preemption forbidden is illegal */
IRQ_ASSERT_ENABLED();
- ASSERT(preempt_forbid_cnt == 0);
+ ASSERT(proc_allowed());
/*
* This is subtle: there's a race condition where a concurrent