From: Ingo Molnar Date: Sun, 20 Jul 2008 09:02:06 +0000 (+0200) Subject: sched: hrtick_enabled() should use cpu_active() X-Git-Tag: v2.6.27-rc1~847^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ba42059fbd0aa1ac91b582412b5fedb1258f241f;p=linux-2.6-omap-h63xx.git sched: hrtick_enabled() should use cpu_active() Peter pointed out that hrtick_enabled() should use cpu_active(). Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index 85cf246cfdf..62b1b8ecb5c 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); }