#if defined(__i386__) || defined(__x86_64__) #define barrier() asm volatile("" ::: "memory") #define virt_mb() __sync_synchronize() #define virt_rmb() barrier() #define virt_wmb() barrier() /* Atomic store should be enough, but gcc generates worse code in that case. */ #define virt_store_mb(var, value) do { \ typeof(var) virt_store_mb_value = (value); \ __atomic_exchange(&(var), &virt_store_mb_value, &virt_store_mb_value, \ __ATOMIC_SEQ_CST); \ barrier(); \ } while (0); /* Weak barriers should be used. If not - it's a bug */ # define mb() abort() # define rmb() abort() # define wmb() abort() #else #error Please fill in barrier macros #endif ref='/cgit.cgi/'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/net/lib80211.h
indings/sound/tlv320aic31xx-micbias.h?id=8b1b41ee74f9712c355d66dc105bbea663ae0afd&id2=bfb34527a32a1a576d9bfb7026d3ab0369a6cd60'>tlv320aic31xx-micbias.h
diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
Diffstat (limited to 'include/dt-bindings/sound/tlv320aic31xx-micbias.h')