summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-20 11:02:06 +0200
committerIngo Molnar <mingo@elte.hu>2008-07-20 11:02:06 +0200
commitba42059fbd0aa1ac91b582412b5fedb1258f241f (patch)
tree50ed4c9170ad5d4645303967ca7a99bde369a0f4 /kernel
parentd986434a7d32079cc6cbedcdb04d834aa9b323ff (diff)
downloadop-kernel-dev-ba42059fbd0aa1ac91b582412b5fedb1258f241f.zip
op-kernel-dev-ba42059fbd0aa1ac91b582412b5fedb1258f241f.tar.gz
sched: hrtick_enabled() should use cpu_active()
Peter pointed out that hrtick_enabled() should use cpu_active(). Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 85cf246..62b1b8e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1006,7 +1006,7 @@ static inline int hrtick_enabled(struct rq *rq)
{
if (!sched_feat(HRTICK))
return 0;
- if (!cpu_online(cpu_of(rq)))
+ if (!cpu_active(cpu_of(rq)))
return 0;
return hrtimer_is_hres_active(&rq->hrtick_timer);
}
OpenPOWER on IntegriCloud