summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/mutex.h
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2008-11-11 17:51:18 (GMT)
committerPaul Mackerras <paulus@samba.org>2008-11-19 05:04:57 (GMT)
commit957ab07b44d839ee8267e827fc4e8f1853798f57 (patch)
treed282112a07dfc82dfc44522ad9e5a0baffdd6888 /arch/powerpc/include/asm/mutex.h
parent46d075be585eae2b74265e4e64ca38dde16a09c6 (diff)
downloadlinux-fsl-qoriq-957ab07b44d839ee8267e827fc4e8f1853798f57.tar.xz
powerpc: Optimise smp_rmb
After commit 598056d5af8fef1dbe8f96f5c2b641a528184e5a ("[POWERPC] Fix rmb to order cacheable vs. noncacheable"), rmb() becomes a sync instruction, which is needed to order cacheable vs noncacheable loads. However smp_rmb() is #defined to rmb(), and smp_rmb() can be an lwsync. This restores smp_rmb() performance by using lwsync there and updates the comments. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/mutex.h')
0 files changed, 0 insertions, 0 deletions