Marian Buschsieweke 5ecafab83d
sys/pm: Correctly access pm_blocker
Replace `volatile` access to pm_blocker by guarding the accesses with
`irq_disable()` ... `irq_restore()`.

`volatile` does only guarantee that no compiler optimizations are performed on
a variable access, but does not provide atomic access. E.g. on systems with
a memory bus of less than 32 bit, the access to pm_blocker cannot be done
with a single CPU instruction. Thus, resorting to disabling IRQs is the easiest
and most portable way to actually achieve atomic access.
2020-07-15 11:21:59 +02:00
..
2020-04-07 17:48:39 +02:00
2020-03-09 17:56:34 +01:00
2020-07-14 21:26:19 +05:30
2020-06-19 10:44:56 +02:00
2020-06-10 21:21:33 +02:00
2020-07-07 10:54:10 +02:00