8 Jun
2018
8 Jun
'18
9:51 a.m.
On Thu, 2018-06-07 at 12:48 +0100, Liam Girdwood wrote:
On Wed, 2018-06-06 at 16:09 -0700, Ranjani Sridharan wrote:
/* atomically increment num channels in use */
__sync_fetch_and_add(&dma->num_channels_busy, 1);
Cant see where this is defined so this wont compile ? Please see arch/atomic.h for atomic arithmetic.
I have a question here:
Can I cast a uint32_t * to atomic_t * and then pass it to the atomic_add() function? Will it still be a atomic operation? Thanks, Ranjani
Liam