diff --git a/src/system/kernel/timer.cpp b/src/system/kernel/timer.cpp index 87881a0423..680762596a 100644 --- a/src/system/kernel/timer.cpp +++ b/src/system/kernel/timer.cpp @@ -18,6 +18,7 @@ #include #include + struct per_cpu_timer_data { spinlock lock; timer* volatile events; @@ -27,13 +28,6 @@ struct per_cpu_timer_data { static per_cpu_timer_data sPerCPU[B_MAX_CPU_COUNT]; -/* -static timer * volatile sEvents[B_MAX_CPU_COUNT] = { NULL, }; -static timer * volatile sCurrentEvents[B_MAX_CPU_COUNT] = { NULL, }; -static spinlock sCurrentEventsCompletion[B_MAX_CPU_COUNT]; -static spinlock sTimerSpinlock[B_MAX_CPU_COUNT] = { 0, }; -*/ - //#define TRACE_TIMER #ifdef TRACE_TIMER @@ -290,7 +284,7 @@ cancel_timer(timer *event) spinLocker.Unlock(); while (cpuData.current_event_in_progress == 1) { - // spin + PAUSE(); } }