aboutsummaryrefslogtreecommitdiff
path: root/core/cpu.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2018-03-08 20:15:06 -0600
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-03-08 20:15:06 -0600
commitf88ffa66d1b4af17dca3e7c17955c096317c75e1 (patch)
tree571177528e78bdead8939d69e5e6c6f2e36b1fc4 /core/cpu.c
parent2d75b9439f663e6ece06ef031ca7d2a6a40a09e7 (diff)
downloadskiboot-f88ffa66d1b4af17dca3e7c17955c096317c75e1.zip
skiboot-f88ffa66d1b4af17dca3e7c17955c096317c75e1.tar.gz
skiboot-f88ffa66d1b4af17dca3e7c17955c096317c75e1.tar.bz2
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 <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/cpu.c')
-rw-r--r--core/cpu.c1
1 files changed, 1 insertions, 0 deletions
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();