mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 18:48:11 +08:00
1b58a449c5
Make g_system_ticks a static variable, as it is only accessed by
clock_get_sched_ticks().
This change improves code modularity and enhances safety, since
clock_get_sched_ticks() performs proper synchronization when
reading g_system_ticks.
Signed-off-by: Chengdong Wang wangchengdong@lixiang.com