|
@@ -63,9 +63,9 @@ way to perform a busy wait is:
|
|
|
cpu_relax();
|
|
|
|
|
|
The cpu_relax() call can lower CPU power consumption or yield to a
|
|
|
-hyperthreaded twin processor; it also happens to serve as a memory barrier,
|
|
|
-so, once again, volatile is unnecessary. Of course, busy-waiting is
|
|
|
-generally an anti-social act to begin with.
|
|
|
+hyperthreaded twin processor; it also happens to serve as a compiler
|
|
|
+barrier, so, once again, volatile is unnecessary. Of course, busy-
|
|
|
+waiting is generally an anti-social act to begin with.
|
|
|
|
|
|
There are still a few rare situations where volatile makes sense in the
|
|
|
kernel:
|