sched: fix compile issue

Root_task_group is acessed outside CONFIG_SCHED_CGROUP
and it results in compilation error.so add macro check
here to avoid compile issue.

Change-Id: Ic3ce1962236f8114f8b03aca8ebd1c8fbd42a076
Signed-off-by: Biao Long <blong@codeaurora.org>
This commit is contained in:
Biao Long 2020-11-02 18:19:04 +08:00
commit cebe8679d5

View file

@ -7049,7 +7049,9 @@ void __init sched_init(void)
init_uclamp();
#ifdef CONFIG_CGROUP_SCHED
walt_init_sched_boost(&root_task_group);
#endif
scheduler_running = 1;
}