preempt_forbid_cnt: make it of type cpuatomic_t
[bertos.git] / bertos / kern / preempt.c
index 2c44373b0517b7c66b1e1d5f1baa9f93061730a4..69b555a998422b460a4bc552170016e189aad948 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
+cpuatomic_t _preempt_forbid_cnt;
 
 static Timer preempt_timer;