sched: walt: move walt_stats member in cfs_rq under CFS_BANDWIDTH

The walt_stats member (walt_sched_stats structure) defined in cfs_rq
is only needed when CFS_BANDWIDTH feature is enabled. So add this
member under CFS_BANDWIDTH feature in cfs_rq structure.

Change-Id: I9ddfb00da3377a66a18522eaecdb8b0f76517e8e
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2020-02-20 09:00:19 +05:30 • committed by Gerrit - the friendly Code Review server
commit 538d90229e

View file

@ -650,11 +650,10 @@ struct cfs_rq {
struct list_head leaf_cfs_rq_list;
struct task_group *tg; /* group that "owns" this runqueue */
#ifdef CONFIG_CFS_BANDWIDTH
#ifdef CONFIG_SCHED_WALT
struct walt_sched_stats walt_stats;
#endif
#ifdef CONFIG_CFS_BANDWIDTH
int runtime_enabled;
s64 runtime_remaining;