kernel/scheduler: enable cpu load tracking after boot

when the cpufreq module is loaded, we let the scheduler update its policy.
Improve assert report
CoreEntry::GetLoad() could return more than kMaxLoad.

Change-Id: I127f9b3e8062b5996872aae30b4021b9904fa179
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3216
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Jérôme Duval
2020-09-17 15:45:25 +00:00
parent 0558674126
commit e632208b79
5 changed files with 20 additions and 8 deletions
+1
View File
@@ -86,6 +86,7 @@ void scheduler_remove_listener(struct SchedulerListener* listener);
void scheduler_init(void);
void scheduler_enable_scheduling(void);
void scheduler_update_policy(void);
bigtime_t _user_estimate_max_scheduling_latency(thread_id thread);
status_t _user_analyze_scheduling(bigtime_t from, bigtime_t until, void* buffer,