summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.c
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.c
parent28166f110880bf561283c48c0d721c2eb4e86e1b (diff)
x86/cpu: turn cpu_delay into a compiler barrier
Diffstat (limited to 'arch/x86/machine/cpu.c')
-rw-r--r--arch/x86/machine/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/machine/cpu.c b/arch/x86/machine/cpu.c
index 225f6483..5eb9ce2d 100644
--- a/arch/x86/machine/cpu.c
+++ b/arch/x86/machine/cpu.c
@@ -416,6 +416,7 @@ cpu_delay(unsigned long usecs)
diff = count - prev;
prev = count;
total -= diff;
+ cpu_pause();
} while (total > 0);
}