]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Only set cpu_has_mmips if SYS_SUPPORTS_MICROMIPS
authorDavid Daney <david.daney@cavium.com>
Fri, 24 May 2013 20:54:10 +0000 (20:54 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 27 Jun 2013 06:33:47 +0000 (08:33 +0200)
commit034a65cac3fd613d8eede4cfba035f2558190f1c
tree0542277f0136fc3be2a1f83c0c75b4f03a9611b5
parent408828c7af947dc347360bb64a1e12c3b76141bc
MIPS: Only set cpu_has_mmips if SYS_SUPPORTS_MICROMIPS

As Jonas Gorske said in his patch:

   Disable cpu_has_mmips for everything but SEAD3 and MALTA. Most of
   these platforms are from before the micromips introduction, so they
   are very unlikely to implement it.

   Reduces an -Os compiled, uncompressed kernel image by 8KiB for
   BCM63XX.

This patch taks a different approach than his, we gate the runtime
test for microMIPS by the config symbol SYS_SUPPORTS_MICROMIPS.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: Jonas Gorski <jogo@openwrt.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5327/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-features.h