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 78efe7c485ac..1f5fa53b46b1 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -878,7 +878,10 @@ static inline int sd_balance_for_mc_power(void)
878 if (sched_smt_power_savings) 878 if (sched_smt_power_savings)
879 return SD_POWERSAVINGS_BALANCE; 879 return SD_POWERSAVINGS_BALANCE;
880 880
881 return SD_PREFER_SIBLING; 881 if (!sched_mc_power_savings)
882 return SD_PREFER_SIBLING;
883
884 return 0;
882} 885}
883 886
884static inline int sd_balance_for_package_power(void) 887static inline int sd_balance_for_package_power(void)