diff --git a/kernel/sched.c b/kernel/sched.c index 85cf246cfdf5b01b401cef35b11069817fdf7d3b..62b1b8ecb5c712aad5631039eb28a4e49a24b1a5 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); }