On Tue, Nov 05, 2019 at 09:19:20AM -0800, Ben Greear wrote:
Thanks for adding the counter. Since it us u32, I doubt you need the spin lock
below?
Ok, I can remove the spin-lock.
Just for clarification though, if I recall correctly then an increment operator
is not guaranteed to work atomically. But you think it's unlikely
to race with a concurrent ++ and therefore it's fine for just a debug counter?
(and if it were racing, it'd just be a missed +1)