aboutsummaryrefslogtreecommitdiff
path: root/core/fast-reboot.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-05-22 15:53:00 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-06 20:49:06 +1000
commit38b0c8454b56a74fe785f0db1d218afa8f6ea478 (patch)
tree2371fcb67e716a7cd16016031cd3554d1afddede /core/fast-reboot.c
parent41b14f9452c25f3dd74a8304763a3cc58bff019f (diff)
downloadskiboot-38b0c8454b56a74fe785f0db1d218afa8f6ea478.zip
skiboot-38b0c8454b56a74fe785f0db1d218afa8f6ea478.tar.gz
skiboot-38b0c8454b56a74fe785f0db1d218afa8f6ea478.tar.bz2
cpu: Introduce smt_lowest()
Recent CPUs have introduced a lower SMT priority. This uses the Linux pattern of executing priority nops in descending order to get a simple portable way to put the CPU into lowest SMT priority. Introduce smt_lowest() and use it in place of smt_very_low and smt_low ; smt_very_low sequences. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/fast-reboot.c')
-rw-r--r--core/fast-reboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fast-reboot.c b/core/fast-reboot.c
index 41e87e3..b99eb99 100644
--- a/core/fast-reboot.c
+++ b/core/fast-reboot.c
@@ -488,7 +488,7 @@ void __noreturn fast_reboot_entry(void)
if (this_cpu() != boot_cpu) {
this_cpu()->state = cpu_state_present;
while (!fast_boot_release) {
- smt_very_low();
+ smt_lowest();
sync();
}
smt_medium();
@@ -511,7 +511,7 @@ void __noreturn fast_reboot_entry(void)
/* XXX Add a callin timeout ? */
while (cpu->state != cpu_state_present) {
- smt_very_low();
+ smt_lowest();
sync();
}
smt_medium();
@@ -534,7 +534,7 @@ void __noreturn fast_reboot_entry(void)
/* XXX Add a callin timeout ? */
while (cpu->state == cpu_state_present) {
- smt_very_low();
+ smt_lowest();
sync();
}
}