diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 3202462109f5..6d55dfc56cab 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1320,6 +1320,9 @@ static void __resched_task(struct task_struct *p, int tif_bit) | |||
1320 | */ | 1320 | */ |
1321 | #define SRR(x, y) (((x) + (1UL << ((y) - 1))) >> (y)) | 1321 | #define SRR(x, y) (((x) + (1UL << ((y) - 1))) >> (y)) |
1322 | 1322 | ||
1323 | /* | ||
1324 | * delta *= weight / lw | ||
1325 | */ | ||
1323 | static unsigned long | 1326 | static unsigned long |
1324 | calc_delta_mine(unsigned long delta_exec, unsigned long weight, | 1327 | calc_delta_mine(unsigned long delta_exec, unsigned long weight, |
1325 | struct load_weight *lw) | 1328 | struct load_weight *lw) |
@@ -1342,12 +1345,6 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight, | |||
1342 | return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); | 1345 | return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); |
1343 | } | 1346 | } |
1344 | 1347 | ||
1345 | static inline unsigned long | ||
1346 | calc_delta_fair(unsigned long delta_exec, struct load_weight *lw) | ||
1347 | { | ||
1348 | return calc_delta_mine(delta_exec, NICE_0_LOAD, lw); | ||
1349 | } | ||
1350 | |||
1351 | static inline void update_load_add(struct load_weight *lw, unsigned long inc) | 1348 | static inline void update_load_add(struct load_weight *lw, unsigned long inc) |
1352 | { | 1349 | { |
1353 | lw->weight += inc; | 1350 | lw->weight += inc; |