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 c51d9fae8cd8..f653af684fb3 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1342,6 +1342,9 @@ static void __resched_task(struct task_struct *p, int tif_bit) | |||
1342 | */ | 1342 | */ |
1343 | #define SRR(x, y) (((x) + (1UL << ((y) - 1))) >> (y)) | 1343 | #define SRR(x, y) (((x) + (1UL << ((y) - 1))) >> (y)) |
1344 | 1344 | ||
1345 | /* | ||
1346 | * delta *= weight / lw | ||
1347 | */ | ||
1345 | static unsigned long | 1348 | static unsigned long |
1346 | calc_delta_mine(unsigned long delta_exec, unsigned long weight, | 1349 | calc_delta_mine(unsigned long delta_exec, unsigned long weight, |
1347 | struct load_weight *lw) | 1350 | struct load_weight *lw) |
@@ -1369,12 +1372,6 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight, | |||
1369 | return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); | 1372 | return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); |
1370 | } | 1373 | } |
1371 | 1374 | ||
1372 | static inline unsigned long | ||
1373 | calc_delta_fair(unsigned long delta_exec, struct load_weight *lw) | ||
1374 | { | ||
1375 | return calc_delta_mine(delta_exec, NICE_0_LOAD, lw); | ||
1376 | } | ||
1377 | |||
1378 | static inline void update_load_add(struct load_weight *lw, unsigned long inc) | 1375 | static inline void update_load_add(struct load_weight *lw, unsigned long inc) |
1379 | { | 1376 | { |
1380 | lw->weight += inc; | 1377 | lw->weight += inc; |