aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/arch.9
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-14 18:26:47 -0500
committerIan Moffett <ian@osmora.org>2024-02-14 18:26:47 -0500
commit2440a9d67b0785132e303ed6f12dff8e80baa547 (patch)
treef4a2d3dd72361814db4c2f240c713255e437fd5e /share/man/man9/arch.9
parent34d83987c18df3e06db1528423841376072bb627 (diff)
kernel: cpu: Add hint_spinwait()
This commit introduces a macro that must exist per architecture (even if it does nothing) to ensure it is machine independent. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'share/man/man9/arch.9')
-rw-r--r--share/man/man9/arch.97
1 files changed, 7 insertions, 0 deletions
diff --git a/share/man/man9/arch.9 b/share/man/man9/arch.9
index 3285208..adbc437 100644
--- a/share/man/man9/arch.9
+++ b/share/man/man9/arch.9
@@ -95,6 +95,13 @@ The macro
calls an internal function that fetches the
cpu_info structure for the BSP.
+The macro
+.Ft hint_spinwait()
+hints the processor that it is currently
+in a spin-wait loop. This greatly reduces the
+processor’s power consumption and improves
+the performance of the spin-wait loop.
+
The function these macros call must return a pointer
to a
.Ft cpu_info