From f88ffa66d1b4af17dca3e7c17955c096317c75e1 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 8 Mar 2018 20:15:06 -0600 Subject: cpu_idle_job: relax a bit This *dramatically* improves kernel boot time with GCOV builds from ~3minutes between loading kernel and switching the HILE bit down to around 10 seconds. Signed-off-by: Stewart Smith --- core/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/cpu.c b/core/cpu.c index 4914d30..e243344 100644 --- a/core/cpu.c +++ b/core/cpu.c @@ -450,6 +450,7 @@ void cpu_idle_job(void) while (!cpu_check_jobs(cpu)) { if (pm_enabled) break; + cpu_relax(); barrier(); } smt_medium(); -- cgit v1.1