summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-07-07 16:15:19 +0200
committerRichard Braun <rbraun@sceen.net>2018-07-07 16:16:15 +0200
commitb17e3aa862e30b66e93dba70aaf3ece1e5e2ed3f (patch)
treef36b1c4a93fc6bf6c85ed6e90c90f33e962b5970 /arch/x86/machine/cpu.h
parent28166f110880bf561283c48c0d721c2eb4e86e1b (diff)
x86/cpu: turn cpu_delay into a compiler barrier
Diffstat (limited to 'arch/x86/machine/cpu.h')
-rw-r--r--arch/x86/machine/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/machine/cpu.h b/arch/x86/machine/cpu.h
index 78857cdc..b94c149d 100644
--- a/arch/x86/machine/cpu.h
+++ b/arch/x86/machine/cpu.h
@@ -594,6 +594,8 @@ uint64_t cpu_get_freq(void);
/*
* Busy-wait for a given amount of time, in microseconds.
+ *
+ * Implies a compiler barrier.
*/
void cpu_delay(unsigned long usecs);