compile testing is for weenies

This commit is contained in:
Dave Jones 2013-03-21 10:54:52 -04:00
parent 4093611836
commit 32241a4d57
1 changed files with 3 additions and 3 deletions

View File

@ -7,12 +7,12 @@ off the screen, just print it once.
static void
dequeue_task_idle(struct rq *rq, struct task_struct *p, int flags)
{
+ static bool once = FALSE;
+ static bool once = 0;
+
+ if (once == TRUE)
+ if (once == 1)
+ return;
+
+ once = TRUE;
+ once = 1;
+
raw_spin_unlock_irq(&rq->lock);
printk(KERN_ERR "bad: scheduling from the idle thread!\n");