diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index cfa222a91539..4aac8aa16037 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1368,9 +1368,6 @@ static void __resched_task(struct task_struct *p, int tif_bit) | |||
1368 | */ | 1368 | */ |
1369 | #define SRR(x, y) (((x) + (1UL << ((y) - 1))) >> (y)) | 1369 | #define SRR(x, y) (((x) + (1UL << ((y) - 1))) >> (y)) |
1370 | 1370 | ||
1371 | /* | ||
1372 | * delta *= weight / lw | ||
1373 | */ | ||
1374 | static unsigned long | 1371 | static unsigned long |
1375 | calc_delta_mine(unsigned long delta_exec, unsigned long weight, | 1372 | calc_delta_mine(unsigned long delta_exec, unsigned long weight, |
1376 | struct load_weight *lw) | 1373 | struct load_weight *lw) |
@@ -1393,6 +1390,12 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight, | |||
1393 | return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); | 1390 | return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); |
1394 | } | 1391 | } |
1395 | 1392 | ||
1393 | static inline unsigned long | ||
1394 | calc_delta_fair(unsigned long delta_exec, struct load_weight *lw) | ||
1395 | { | ||
1396 | return calc_delta_mine(delta_exec, NICE_0_LOAD, lw); | ||
1397 | } | ||
1398 | |||
1396 | static inline void update_load_add(struct load_weight *lw, unsigned long inc) | 1399 | static inline void update_load_add(struct load_weight *lw, unsigned long inc) |
1397 | { | 1400 | { |
1398 | lw->weight += inc; | 1401 | lw->weight += inc; |