Don Lewis 290d906084 Fix the long term ULE load balancer so that it actually works. The
initial call to sched_balance() during startup is meant to initialize
balance_ticks, but does not actually do that since smp_started is
still zero at that time.  Since balance_ticks does not get set,
there are no further calls to sched_balance().  Fix this by setting
balance_ticks in sched_initticks() since we know the value of
balance_interval at that time, and eliminate the useless startup
call to sched_balance().  We don't need to randomize the intial
value of balance_ticks.

Since there is now only one call to sched_balance(), we can hoist
the tests at the top of this function out to the caller and avoid
the overhead of the function call when running a SMP kernel on UP
hardware.

PR:		223914
Reviewed by:	kib
MFC after:	2 weeks
2018-07-29 00:30:06 +00:00
..
2018-07-03 01:55:09 +00:00
2018-04-13 20:30:49 +00:00
2018-07-10 14:04:52 +00:00
2018-05-06 00:19:48 +00:00
2018-05-19 03:55:42 +00:00
2018-05-22 15:13:25 +00:00
2017-12-13 16:30:39 +00:00
2018-06-13 16:48:07 +00:00
2018-07-06 06:20:03 +00:00
2018-04-08 16:34:10 +00:00
2018-06-01 13:26:45 +00:00
2018-05-10 13:19:42 +00:00
2018-06-01 13:26:45 +00:00
2018-07-10 14:04:52 +00:00
2018-07-10 14:04:52 +00:00
2018-06-01 13:26:45 +00:00
2018-03-27 15:20:03 +00:00
2018-05-19 04:10:53 +00:00
2018-06-01 13:26:45 +00:00
2018-05-20 04:45:05 +00:00
2018-06-06 15:12:19 +00:00
2018-06-01 13:26:45 +00:00