[Skiboot] [PATCH] cpu_idle_job: relax a bit
Stewart Smith
stewart at linux.vnet.ibm.com
Fri Mar 9 13:16:07 AEDT 2018
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 at linux.vnet.ibm.com>
---
core/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/cpu.c b/core/cpu.c
index 4914d3024cfe..e243344aace6 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();
--
2.14.3
More information about the Skiboot
mailing list