]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: hrtick_enabled() should use cpu_active()
authorIngo Molnar <mingo@elte.hu>
Sun, 20 Jul 2008 09:02:06 +0000 (11:02 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 20 Jul 2008 09:02:06 +0000 (11:02 +0200)
Peter pointed out that hrtick_enabled() should use cpu_active().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 85cf246cfdf5b01b401cef35b11069817fdf7d3b..62b1b8ecb5c712aad5631039eb28a4e49a24b1a5 100644 (file)
@@ -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);
 }