Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba42059f authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: hrtick_enabled() should use cpu_active()



Peter pointed out that hrtick_enabled() should use cpu_active().

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d986434a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}