]> git.baikalelectronics.ru Git - kernel.git/commit
add memory barrier to arch_local_irq_restore
authorMark Salter <msalter@redhat.com>
Tue, 9 Apr 2013 19:35:46 +0000 (15:35 -0400)
committerMark Salter <msalter@redhat.com>
Tue, 9 Apr 2013 19:35:46 +0000 (15:35 -0400)
commit6bedbd90e28f20fddaae8265ce440b897afd6639
treec1d2c18ae43895bcec30e25411b2c2e5bf2dbe5e
parent5436827a623eba3678f4920bbc542ecb7cf06cad
add memory barrier to arch_local_irq_restore

arch_local_irq_save() and friends are required to act as compiler
memory barriers. This patch adds a "memory" clobber to the inline
asm code in arch_local_irq_restore() which is used as the building
block for other functions needing to set/clear the interrupt enable
in the CSR register.

Signed-off-by: Mark Salter <msalter@redhat.com>
arch/c6x/include/asm/irqflags.h