aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorRussell King <[email protected]>2015-04-03 10:15:53 +0000
committerRussell King <[email protected]>2015-04-14 21:26:51 +0000
commit47b8484ea6569511a3cd915bea29886b4cd08333 (patch)
treec4f80e72ea340c972fcf55cf13b7c27d223bc31b /net/unix/af_unix.c
parentARM: cache-v7: use movw/movt instructions (diff)
downloadkernel-47b8484ea6569511a3cd915bea29886b4cd08333.tar.gz
kernel-47b8484ea6569511a3cd915bea29886b4cd08333.zip
ARM: cache-v7: shift CLIDR to extract appropriate field before masking
Rather than have code which masks and then shifts, such as: mrc p15, 1, r0, c0, c0, 1 ALT_SMP(ands r3, r0, #7 << 21) ALT_UP( ands r3, r0, #7 << 27) ALT_SMP(mov r3, r3, lsr #20) ALT_UP( mov r3, r3, lsr #26) re-arrange this as a shift and then mask. The masking is the same for each field which we want to extract, so this allows the mask to be shared amongst code paths: mrc p15, 1, r0, c0, c0, 1 ALT_SMP(mov r3, r0, lsr #20) ALT_UP( mov r3, r0, lsr #26) ands r3, r3, #7 << 1 Use this method for the LoUIS, LoUU and LoC fields. Reviewed-by: Catalin Marinas <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions