diff --git a/include/linux/sched.h b/include/linux/sched.h index 78efe7c485ac9630f3866764e2eb8e54500f789c..1f5fa53b46b1593acfd007438c4bbc59c03d2675 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -878,7 +878,10 @@ static inline int sd_balance_for_mc_power(void) if (sched_smt_power_savings) return SD_POWERSAVINGS_BALANCE; - return SD_PREFER_SIBLING; + if (!sched_mc_power_savings) + return SD_PREFER_SIBLING; + + return 0; } static inline int sd_balance_for_package_power(void)