critical sections: remove unnecessary volatile
Critical section count/state variables are synchronised by IRQ disabling and
critical section calls themselves, so do not need to be volatile.

This eliminates a couple of unnecessary reads of the counter variable.
ls
1 parent 51b8d6e commit 70af016348e5dcff2ee345f32367a769f7d3b36b
@Kevin Bracey Kevin Bracey authored on 3 Jan 2019
Showing 2 changed files
View
hal/mbed_critical_section_api.c
View
platform/mbed_critical.c