summaryrefslogtreecommitdiffstats
path: root/arch/mips/lantiq/prom.h
diff options
context:
space:
mode:
authorPaul Burton2016-05-06 14:35:03 +0200
committerRalf Baechle2016-05-13 14:02:17 +0200
commit87321fddaeb8706a91293dc244408697a0a24ece (patch)
tree4a3de3864e8ccbaaa15417001e7a8fd2d5d7edcb /arch/mips/lantiq/prom.h
parentMIPS: Remove no longer needed work_on_cpu() call (diff)
downloadkernel-qcow2-linux-87321fddaeb8706a91293dc244408697a0a24ece.tar.gz
kernel-qcow2-linux-87321fddaeb8706a91293dc244408697a0a24ece.tar.xz
kernel-qcow2-linux-87321fddaeb8706a91293dc244408697a0a24ece.zip
MIPS: Implement __arch_bitrev* using bitswap for MIPSr6
Release 6 of the MIPS architecture introduced the bitswap instruction, which reverses the bits within each byte of a word. Make use of this instruction to implement the __arch_bitrev* functions, which should be faster for most MIPSr6 CPUs, reduces code size slightly and allows us to avoid the lookup table used by the generic implementation, saving 256 bytes in the kernel binary by dropping that. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/13204/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lantiq/prom.h')
0 files changed, 0 insertions, 0 deletions