git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01961c
)
MIPS: Remove redundant instructions from arch_spin_{,try}lock.
author
David Daney
<david.daney@cavium.com>
Thu, 25 Apr 2013 15:48:53 +0000
(15:48 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Fri, 26 Apr 2013 15:18:24 +0000
(17:18 +0200)
We were doing:
SRL $r,$?,16
ANDI $r,$r,0xffff
The logical right shift by 16 leaves the upper 16 bits clear, so the
subsequent masking out of those bits is redundant, and can safely be
removed.
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
No differences found