Skip to content

Commit

Permalink
cpu_idle_job: relax a bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stewartsmith committed Mar 9, 2018
1 parent 2d75b94 commit f88ffa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ void cpu_idle_job(void)
while (!cpu_check_jobs(cpu)) {
if (pm_enabled)
break;
cpu_relax();
barrier();
}
smt_medium();
Expand Down

0 comments on commit f88ffa6

Please sign in to comment.