OSDN Git Service

MIPS: BMIPS: change compile time checks to runtime checks
authorJonas Gorski <jogo@openwrt.org>
Wed, 18 Dec 2013 13:12:01 +0000 (14:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 22 Jan 2014 19:18:51 +0000 (20:18 +0100)
commit6465460c92a856f78e1f1b950f9d304ec2661e5a
treedb0e6f531d656d5dd71174ce7cf4012e5eebb3a4
parent68248d0c86c46249336b366baf5547bac68752f0
MIPS: BMIPS: change compile time checks to runtime checks

Allow building for all bmips cpus at the same time by changing ifdefs
to checks for the cpu type, or adding appropriate checks to the
assembly.

Since BMIPS43XX and BMIPS5000 require different IPI implementations,
split the SMP ops into one for each, so the runtime overhead is only
at registration time for them.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6241/
arch/mips/bcm63xx/prom.c
arch/mips/include/asm/bmips.h
arch/mips/kernel/bmips_vec.S
arch/mips/kernel/smp-bmips.c