summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2015-08-13 14:51:36 +0300
committerScott Wood <scottwood@freescale.com>2015-08-18 02:53:47 +0300
commit69399ee9cbcb00bbdd9ff6fafafde23ef404d40f (patch)
treed3112484a91090fc03d98e02c91ec9db8a276797 /arch/powerpc/platforms
parente5e55cc08c76134e38526a66b3bd30b1b71bbf63 (diff)
downloadlinux-69399ee9cbcb00bbdd9ff6fafafde23ef404d40f.tar.xz
powerpc/e6500: hw tablewalk: optimize a bit for tcd lock acquiring codes
It makes no sense to put the instructions for calculating the lock value (cpu number + 1) and the clearing of eq bit of cr1 in lbarx/stbcx loop. And when the lock is acquired by the other thread, the current lock value has no chance to equal with the lock value used by current cpu. So we can skip the comparing for these two lock values in the lbz/bne loop. Signed-off-by: Kevin Hao <haokexin@gmail.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions