aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-20 05:02:06 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-20 05:02:06 -0400
commitba42059fbd0aa1ac91b582412b5fedb1258f241f (patch)
tree50ed4c9170ad5d4645303967ca7a99bde369a0f4 /kernel/sched.c
parentd986434a7d32079cc6cbedcdb04d834aa9b323ff (diff)
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/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 85cf246cfdf5..62b1b8ecb5c7 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1006,7 +1006,7 @@ static inline int hrtick_enabled(struct rq *rq)
1006{ 1006{
1007 if (!sched_feat(HRTICK)) 1007 if (!sched_feat(HRTICK))
1008 return 0; 1008 return 0;
1009 if (!cpu_online(cpu_of(rq))) 1009 if (!cpu_active(cpu_of(rq)))
1010 return 0; 1010 return 0;
1011 return hrtimer_is_hres_active(&rq->hrtick_timer); 1011 return hrtimer_is_hres_active(&rq->hrtick_timer);
1012} 1012}