mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
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:
parent
0fade348a5
commit
61bc547150
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user