Kernel/aarch64: Remove counterproductive volatile

Should not be needed, and triggers -Wvolatile in gcc.
See discussion on #16790.
This commit is contained in:
Nico Weber 2023-01-05 13:43:36 -05:00 committed by Linus Groh
parent 3b682e885e
commit 7f4680a377
Notes: sideshowbarker 2024-07-17 05:01:20 +09:00

View file

@ -63,7 +63,7 @@ inline ExceptionLevel get_current_exception_level()
inline void wait_cycles(int n)
{
// FIXME: Make timer-based.
for (int volatile i = 0; i < n; i = i + 1) {
for (int i = 0; i < n; i = i + 1) {
Processor::pause();
}
}