Message ID | 20150918075215.GR3816@twins.programming.kicks-ass.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 6ab415aa15c4..f39c0498e284 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2666,10 +2666,7 @@ unsigned long nr_running(void) */ bool single_task_running(void) { - if (cpu_rq(smp_processor_id())->nr_running == 1) - return true; - else - return false; + return raw_rq()->nr_running == 1; } EXPORT_SYMBOL(single_task_running);