ppc4xx optimizations
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.30 / 991-ppc4xx_optimization.patch
1 Upstream doesn't optimize the kernel and bootwrappers for ppc44x because
2 they still want to support gcc 3.3 -- well, we don't.
3
4 --- a/arch/powerpc/Makefile
5 +++ b/arch/powerpc/Makefile
6 @@ -123,7 +123,8 @@ ifeq ($(CONFIG_FUNCTION_TRACER),y)
7 KBUILD_CFLAGS += -mno-sched-epilog
8 endif
9
10 -cpu-as-$(CONFIG_4xx) += -Wa,-m405
11 +cpu-as-$(CONFIG_40x) += -Wa,-m405
12 +cpu-as-$(CONFIG_44x) += -Wa,-m440
13 cpu-as-$(CONFIG_6xx) += -Wa,-maltivec
14 cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec
15 cpu-as-$(CONFIG_E500) += -Wa,-me500
16 --- a/arch/powerpc/boot/Makefile
17 +++ b/arch/powerpc/boot/Makefile
18 @@ -38,9 +38,9 @@ BOOTCFLAGS += -I$(obj) -I$(srctree)/$(ob
19 DTS_FLAGS ?= -p 1024
20
21 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
22 -$(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
23 -$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
24 -$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
25 +$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
26 +$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440
27 +$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440
28 $(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
29 $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
30 $(obj)/virtex405-head.o: BOOTAFLAGS += -mcpu=405