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
..
2017-01-15 17:54:01 +00:00
2018-06-14 21:27:25 +00:00
2017-12-31 09:23:19 +00:00
2017-04-13 15:43:44 +00:00
2018-07-03 01:55:09 +00:00
2018-07-03 02:50:07 +00:00
2018-04-13 20:30:49 +00:00
2018-05-18 17:58:09 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-07-19 19:03:18 +00:00
2018-03-13 13:09:10 +00:00
2018-03-13 13:09:10 +00:00
2018-07-05 16:16:28 +00:00
2018-07-10 14:04:52 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:20:12 +00:00
2018-07-05 17:13:37 +00:00
2018-07-05 17:13:37 +00:00
2017-11-27 15:20:12 +00:00
2018-05-19 05:07:03 +00:00
2018-05-29 16:16:24 +00:00
2017-11-27 15:20:12 +00:00
2018-07-19 11:28:14 +00:00
2018-05-26 14:23:11 +00:00
2018-01-21 15:42:36 +00:00
2018-07-12 22:48:18 +00:00
2018-04-27 15:16:34 +00:00
2018-05-01 17:32:43 +00:00
2018-07-12 02:51:50 +00:00
2017-11-27 15:20:12 +00:00
2018-07-27 13:49:17 +00:00
2018-07-13 11:32:27 +00:00
2018-04-18 21:31:13 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-06-21 21:12:49 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-07-23 12:51:23 +00:00
2018-07-06 18:50:22 +00:00
2017-11-27 15:20:12 +00:00
2018-06-05 04:26:40 +00:00
2017-11-27 15:20:12 +00:00
2018-05-09 00:00:47 +00:00
2018-05-18 17:58:09 +00:00
2018-07-13 22:40:14 +00:00
2018-05-19 05:04:38 +00:00
2018-04-24 01:04:10 +00:00
2018-04-20 13:08:04 +00:00
2018-06-13 17:04:41 +00:00
2018-05-06 00:19:48 +00:00
2018-04-27 00:12:00 +00:00
2018-05-18 17:58:09 +00:00
2017-11-27 15:20:12 +00:00
2018-06-02 22:37:53 +00:00
2018-03-27 18:05:51 +00:00
2017-11-27 15:20:12 +00:00
2018-05-19 04:09:58 +00:00
2018-06-08 04:58:03 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-07-04 13:22:48 +00:00
2018-04-20 15:19:27 +00:00
2018-04-20 13:08:04 +00:00
2018-04-20 13:08:04 +00:00
2017-11-27 15:20:12 +00:00
2018-04-20 13:08:04 +00:00
2018-04-06 17:35:35 +00:00
2018-06-02 22:37:53 +00:00
2018-06-02 22:37:53 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-05-29 21:45:15 +00:00
2018-04-06 17:35:35 +00:00
2018-05-19 03:55:42 +00:00
2018-07-15 17:10:12 +00:00
2018-07-03 01:55:09 +00:00
2018-05-22 15:13:25 +00:00
2018-05-22 08:27:33 +00:00
2018-05-07 22:29:32 +00:00
2018-06-20 20:04:20 +00:00
2018-07-05 17:13:37 +00:00
2018-07-11 19:38:42 +00:00
2018-07-11 19:38:42 +00:00
2018-06-22 10:23:32 +00:00
2017-11-25 23:41:05 +00:00
2017-12-31 09:21:01 +00:00
2018-05-19 05:09:10 +00:00
2017-11-27 15:20:12 +00:00
2018-04-06 17:35:35 +00:00
2017-11-18 14:26:50 +00:00
2018-07-19 20:11:08 +00:00
2018-07-19 19:50:42 +00:00
2018-01-29 19:14:15 +00:00
2018-06-11 18:57:40 +00:00
2017-12-13 16:30:39 +00:00
2017-11-18 14:26:50 +00:00
2018-05-18 17:58:09 +00:00
2018-07-05 17:13:37 +00:00
2018-07-29 00:30:06 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2017-12-31 09:23:52 +00:00
2017-11-20 19:43:44 +00:00
2018-07-13 16:43:05 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-07-04 09:07:18 +00:00
2018-01-12 23:25:05 +00:00
2018-05-23 01:48:09 +00:00
2018-02-12 16:25:56 +00:00
2018-02-15 17:35:40 +00:00
2018-07-10 00:18:12 +00:00
2018-07-19 21:58:06 +00:00
2017-11-27 15:20:12 +00:00
2018-06-13 16:48:07 +00:00
2018-04-06 17:35:35 +00:00
2018-07-06 06:20:03 +00:00
2018-03-19 22:43:27 +00:00
2018-02-06 22:17:01 +00:00
2017-11-27 15:20:12 +00:00
2018-05-29 21:56:39 +00:00
2018-01-22 02:08:10 +00:00
2018-07-10 00:36:37 +00:00
2018-07-13 17:41:28 +00:00
2017-08-16 16:51:55 +00:00
2018-06-20 11:42:06 +00:00
2017-11-27 15:20:12 +00:00
2018-04-08 16:34:10 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2018-07-19 20:00:28 +00:00
2017-12-25 04:48:39 +00:00
2017-11-20 19:43:44 +00:00
2018-07-05 17:13:37 +00:00
2017-11-27 15:20:12 +00:00
2018-06-07 07:48:50 +00:00
2017-11-27 15:20:12 +00:00
2018-07-17 14:56:54 +00:00
2018-06-01 13:26:45 +00:00
2018-02-13 17:38:08 +00:00
2017-11-27 15:20:12 +00:00
2017-11-20 19:43:44 +00:00
2018-01-19 17:46:31 +00:00
2017-11-20 19:43:44 +00:00
2018-05-19 05:00:16 +00:00
2017-12-21 09:17:48 +00:00
2017-11-27 15:20:12 +00:00
2018-04-27 15:16:34 +00:00
2018-01-21 15:42:36 +00:00
2018-05-16 09:01:02 +00:00
2018-06-04 01:10:23 +00:00
2018-06-02 22:37:53 +00:00
2018-05-19 04:04:44 +00:00
2017-11-27 15:20:12 +00:00
2018-06-13 17:04:41 +00:00
2018-06-19 01:54:00 +00:00
2018-05-19 05:14:05 +00:00
2018-05-10 13:19:42 +00:00
2018-04-06 17:35:35 +00:00
2018-06-01 13:26:45 +00:00
2018-05-09 18:47:24 +00:00
2018-06-21 21:07:25 +00:00
2018-01-11 20:26:17 +00:00
2018-07-10 14:04:52 +00:00
2018-07-10 13:32:04 +00:00
2018-07-10 14:04:52 +00:00
2018-04-06 17:35:35 +00:00
2018-06-01 13:26:45 +00:00
2018-04-06 17:35:35 +00:00
2018-04-06 17:35:35 +00:00
2018-04-06 17:35:35 +00:00
2017-11-20 19:43:44 +00:00
2018-05-19 04:48:26 +00:00
2018-05-19 04:48:26 +00:00
2018-03-27 15:20:03 +00:00
2017-11-27 15:20:12 +00:00
2017-11-27 15:20:12 +00:00
2018-07-05 16:28:43 +00:00
2017-11-27 15:20:12 +00:00
2018-06-06 15:45:57 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2018-05-22 15:54:25 +00:00
2018-05-19 04:10:53 +00:00
2018-05-09 18:47:24 +00:00
2017-11-27 15:20:12 +00:00
2018-06-07 18:18:13 +00:00
2018-07-10 13:03:06 +00:00
2018-05-23 01:48:09 +00:00
2018-07-10 13:03:06 +00:00
2018-02-15 21:24:43 +00:00
2018-05-09 18:47:24 +00:00
2018-06-01 23:49:32 +00:00
2018-06-20 08:34:29 +00:00
2018-06-01 13:26:45 +00:00
2018-05-20 04:45:05 +00:00
2018-06-16 08:26:23 +00:00
2018-02-05 19:06:34 +00:00
2017-11-27 15:20:12 +00:00
2018-05-04 20:54:27 +00:00
2018-05-19 04:59:39 +00:00
2018-05-04 20:54:27 +00:00
2018-03-21 14:46:54 +00:00
2018-06-06 15:12:19 +00:00
2018-06-13 12:22:00 +00:00
2018-06-01 13:26:45 +00:00
2018-01-17 22:36:58 +00:00