|
@@ -6876,8 +6876,10 @@ static inline int on_null_domain(int cpu)
|
|
/*
|
|
/*
|
|
* Trigger the SCHED_SOFTIRQ if it is time to do periodic load balancing.
|
|
* Trigger the SCHED_SOFTIRQ if it is time to do periodic load balancing.
|
|
*/
|
|
*/
|
|
-void trigger_load_balance(struct rq *rq, int cpu)
|
|
|
|
|
|
+void trigger_load_balance(struct rq *rq)
|
|
{
|
|
{
|
|
|
|
+ int cpu = rq->cpu;
|
|
|
|
+
|
|
/* Don't need to rebalance while attached to NULL domain */
|
|
/* Don't need to rebalance while attached to NULL domain */
|
|
if (time_after_eq(jiffies, rq->next_balance) &&
|
|
if (time_after_eq(jiffies, rq->next_balance) &&
|
|
likely(!on_null_domain(cpu)))
|
|
likely(!on_null_domain(cpu)))
|