mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
d986434a7d
commit
ba42059fbd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue