+8
-8
kernel/sched/fair.c
+8
-8
kernel/sched/fair.c
···
94
94
{
95
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
+
*/
104
+
static unsigned int capacity_margin = 1280;
97
105
#endif
98
106
99
107
#ifdef CONFIG_CFS_BANDWIDTH
···
117
109
*/
118
110
unsigned int sysctl_sched_cfs_bandwidth_slice = 5000UL;
119
111
#endif
120
-
121
-
/*
122
-
* The margin used when comparing utilization with CPU capacity:
123
-
* util * margin < capacity * 1024
124
-
*
125
-
* (default: ~20%)
126
-
*/
127
-
static unsigned int capacity_margin = 1280;
128
112
129
113
static inline void update_load_add(struct load_weight *lw, unsigned long inc)
130
114
{