Skip to content

Commit

Permalink
sched: hrtick_enabled() should use cpu_active()
Browse files Browse the repository at this point in the history
Peter pointed out that hrtick_enabled() should use cpu_active().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jul 20, 2008
1 parent d986434 commit ba42059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ba42059

Please sign in to comment.