diff options
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r-- | kernel/sched/fair.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index b73f4ba62b24..b35d32201617 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -6876,8 +6876,10 @@ static inline int on_null_domain(int cpu) | |||
6876 | /* | 6876 | /* |
6877 | * Trigger the SCHED_SOFTIRQ if it is time to do periodic load balancing. | 6877 | * Trigger the SCHED_SOFTIRQ if it is time to do periodic load balancing. |
6878 | */ | 6878 | */ |
6879 | void trigger_load_balance(struct rq *rq, int cpu) | 6879 | void trigger_load_balance(struct rq *rq) |
6880 | { | 6880 | { |
6881 | int cpu = rq->cpu; | ||
6882 | |||
6881 | /* Don't need to rebalance while attached to NULL domain */ | 6883 | /* Don't need to rebalance while attached to NULL domain */ |
6882 | if (time_after_eq(jiffies, rq->next_balance) && | 6884 | if (time_after_eq(jiffies, rq->next_balance) && |
6883 | likely(!on_null_domain(cpu))) | 6885 | likely(!on_null_domain(cpu))) |