From: Jim C. <jim...@gm...> - 2012-05-20 18:40:34
|
Signed-off-by: Jim Cromie <jim...@gm...> --- inlines.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/inlines.h b/inlines.h index 868f20e..ead3ae7 100644 --- a/inlines.h +++ b/inlines.h @@ -66,11 +66,15 @@ #define acxmem_lock_flags unsigned long flags = 0 #define acxmem_lock() \ if (IS_MEM(adev)) \ - spin_lock_irqsave(&adev->spinlock, flags) - -#define acxmem_unlock() \ - if (IS_MEM(adev)) \ - spin_unlock_irqrestore(&adev->spinlock, flags) + spin_lock_irqsave(&adev->spinlock, flags); \ + else \ + __acquire(&adev->spinlock) + +#define acxmem_unlock() \ + if (IS_MEM(adev)) \ + spin_unlock_irqrestore(&adev->spinlock, flags); \ + else \ + __release(&adev->spinlock) /* Endianess: read[lw], write[lw] do little-endian conversion internally */ #define acx_readl(v) readl((v)) -- 1.7.10.1.487.ga3935e6 |