]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2994b3eadf8b9373bda252f79330b72dd2b25366
treedb0e6f531d656d5dd71174ce7cf4012e5eebb3a4
parent2924dbdc1a1985510084a3ae38bbc066d42892e3
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