Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63576
b: refs/heads/master
c: 5a4f3ea
h: refs/heads/master
v: v3
  • Loading branch information
Peter Williams authored and Ingo Molnar committed Aug 2, 2007
1 parent 263a94c commit d1420df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 362a7016637648c6aefc98b706298baedfaa1543
refs/heads/master: 5a4f3ea77e1b0c72a3ec136c881eb0d64aa1d25e
16 changes: 1 addition & 15 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,19 +727,6 @@ static void update_curr_load(struct rq *rq, u64 now)
* slice expiry etc.
*/

/*
* Assume: static_prio_timeslice(NICE_TO_PRIO(0)) == DEF_TIMESLICE
* If static_prio_timeslice() is ever changed to break this assumption then
* this code will need modification
*/
#define TIME_SLICE_NICE_ZERO DEF_TIMESLICE
#define load_weight(lp) \
(((lp) * SCHED_LOAD_SCALE) / TIME_SLICE_NICE_ZERO)
#define PRIO_TO_LOAD_WEIGHT(prio) \
load_weight(static_prio_timeslice(prio))
#define RTPRIO_TO_LOAD_WEIGHT(rp) \
(PRIO_TO_LOAD_WEIGHT(MAX_RT_PRIO) + load_weight(rp))

#define WEIGHT_IDLEPRIO 2
#define WMULT_IDLEPRIO (1 << 31)

Expand Down Expand Up @@ -2908,8 +2895,7 @@ static void active_load_balance(struct rq *busiest_rq, int busiest_cpu)
schedstat_inc(sd, alb_cnt);

if (move_tasks(target_rq, target_cpu, busiest_rq, 1,
RTPRIO_TO_LOAD_WEIGHT(100), sd, CPU_IDLE,
NULL))
ULONG_MAX, sd, CPU_IDLE, NULL))
schedstat_inc(sd, alb_pushed);
else
schedstat_inc(sd, alb_failed);
Expand Down

0 comments on commit d1420df

Please sign in to comment.