rename cpuXXX_t to cpu_XXX_t
[bertos.git] / bertos / kern / preempt.c
index 2c44373b0517b7c66b1e1d5f1baa9f93061730a4..4b1ad9ee2d5dea8e213570eeb1c59fc400290fa6 100644 (file)
@@ -65,8 +65,8 @@ CONFIG_DEPEND(CONFIG_KERN_PREEMPT,    CONFIG_KERN_SCHED && CONFIG_TIMER_EVENTS &
 
 MOD_DEFINE(preempt)
 
-/** Global preemption disabling nesting counter */
-int _preempt_forbid_cnt;
+/// Global preemption disabling nesting counter
+cpu_atomic_t _preempt_forbid_cnt;
 
 static Timer preempt_timer;