diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-08 20:15:06 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-08 20:15:06 -0600 |
commit | f88ffa66d1b4af17dca3e7c17955c096317c75e1 (patch) | |
tree | 571177528e78bdead8939d69e5e6c6f2e36b1fc4 | |
parent | 2d75b9439f663e6ece06ef031ca7d2a6a40a09e7 (diff) | |
download | skiboot-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>
-rw-r--r-- | core/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -450,6 +450,7 @@ void cpu_idle_job(void) while (!cpu_check_jobs(cpu)) { if (pm_enabled) break; + cpu_relax(); barrier(); } smt_medium(); |