kasjer commented on a change in pull request #2390:
URL: https://github.com/apache/mynewt-core/pull/2390#discussion_r501231715
##########
File path: hw/mcu/dialog/cmac/src/cmac_timer.c
##########
@@ -367,11 +367,17 @@ cmac_timer_slp_disable(uint32_t exp_ticks)
bool
cmac_timer_slp_update(void)
{
- if (g_cmac_shared_data.lp_clock_freq == g_cmac_timer_slp.freq) {
+ uint32_t lp_clock_freq;
+
+ cmac_shared_lock();
Review comment:
locking read of single value seems like overkill
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]