summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched/fair.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 1c1cfbf6ba0c..d1907506318a 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -94,6 +94,14 @@ int __weak arch_asym_cpu_priority(int cpu)
94{ 94{
95 return -cpu; 95 return -cpu;
96} 96}
97
98/*
99 * The margin used when comparing utilization with CPU capacity:
100 * util * margin < capacity * 1024
101 *
102 * (default: ~20%)
103 */
104static unsigned int capacity_margin = 1280;
97#endif 105#endif
98 106
99#ifdef CONFIG_CFS_BANDWIDTH 107#ifdef CONFIG_CFS_BANDWIDTH
@@ -110,14 +118,6 @@ int __weak arch_asym_cpu_priority(int cpu)
110unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL; 118unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL;
111#endif 119#endif
112 120
113/*
114 * The margin used when comparing utilization with CPU capacity:
115 * util * margin < capacity * 1024
116 *
117 * (default: ~20%)
118 */
119static unsigned int capacity_margin = 1280;
120
121static inline void update_load_add(struct load_weight *lw, unsigned long inc) 121static inline void update_load_add(struct load_weight *lw, unsigned long inc)
122{ 122{
123 lw->weight += inc; 123 lw->weight += inc;