Lines 880-890
Link Here
|
880 |
{ |
880 |
{ |
881 |
struct tdq *tdq; |
881 |
struct tdq *tdq; |
882 |
|
882 |
|
|
|
883 |
balance_ticks = max(balance_interval / 2, 1) + |
884 |
(sched_random() % balance_interval); |
885 |
|
883 |
if (smp_started == 0 || rebalance == 0) |
886 |
if (smp_started == 0 || rebalance == 0) |
884 |
return; |
887 |
return; |
885 |
|
888 |
|
886 |
balance_ticks = max(balance_interval / 2, 1) + |
|
|
887 |
(sched_random() % balance_interval); |
888 |
tdq = TDQ_SELF(); |
889 |
tdq = TDQ_SELF(); |
889 |
TDQ_UNLOCK(tdq); |
890 |
TDQ_UNLOCK(tdq); |
890 |
sched_balance_group(cpu_top); |
891 |
sched_balance_group(cpu_top); |