mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
sched: micro optimization for sched_energy_present
sched_energy_present is always present for chipsets that are supported, so, switch to static_branch_likely() to let compiler know the same for better optimization. Change-Id: Ie4615ae6f7d1ec7498d0708f500c5a5a72ef4b4d Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
This commit is contained in:
parent
43ee86678a
commit
510535838b
1 changed files with 1 additions and 1 deletions
|
|
@ -2830,7 +2830,7 @@ DECLARE_STATIC_KEY_FALSE(sched_energy_present);
|
|||
|
||||
static inline bool sched_energy_enabled(void)
|
||||
{
|
||||
return static_branch_unlikely(&sched_energy_present);
|
||||
return static_branch_likely(&sched_energy_present);
|
||||
}
|
||||
|
||||
#else /* ! (CONFIG_ENERGY_MODEL && CONFIG_CPU_FREQ_GOV_SCHEDUTIL) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue