diff options
-rw-r--r-- | kernel/sched.c | 2 |
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 | } |