sched: Use IS_ENABLED macro to check if config is enabled

Use IS_ENABLED macro to check for a config flag instead of using
ifdef.

Change-Id: I1c703f9abddf1f66e5b2795f4cf9a1b230f8da4f
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
This commit is contained in:
Rishabh Bhatnagar 2021-07-09 12:17:55 -07:00 committed by Rishabh Bhatnagar
parent 0fade348a5
commit 61bc547150

View File

@ -174,7 +174,7 @@ static inline void update_busy_hyst_end_time(int cpu, bool dequeue,
}
coloc_trigger = nr_run_trigger || coloc_load_trigger;
#ifdef CONFIG_SCHED_CONSERVATIVE_BOOST_LPM_BIAS
#if IS_ENABLED(CONFIG_SCHED_CONSERVATIVE_BOOST_LPM_BIAS)
hyst_trigger = nr_run_trigger || load_trigger || (sched_boost_type == CONSERVATIVE_BOOST);
#else
hyst_trigger = nr_run_trigger || load_trigger;