aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b1b8d84c580..0eef87b58ea 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -870,7 +870,10 @@ static inline int sd_balance_for_mc_power(void)
870 if (sched_smt_power_savings) 870 if (sched_smt_power_savings)
871 return SD_POWERSAVINGS_BALANCE; 871 return SD_POWERSAVINGS_BALANCE;
872 872
873 return SD_PREFER_SIBLING; 873 if (!sched_mc_power_savings)
874 return SD_PREFER_SIBLING;
875
876 return 0;
874} 877}
875 878
876static inline int sd_balance_for_package_power(void) 879static inline int sd_balance_for_package_power(void)