]> err.no Git - linux-2.6/commitdiff
[POWERPC] Optimise some TOC usage
authorAnton Blanchard <anton@samba.org>
Sat, 10 Jun 2006 10:23:54 +0000 (20:23 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 15 Jun 2006 09:31:25 +0000 (19:31 +1000)
Micro-optimisation - add no-minimal-toc to some more arch/powerpc Makefiles.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/lib/Makefile
arch/powerpc/oprofile/Makefile
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/sysdev/Makefile

index ae354d65b82ccfb66311c4a652905d8ef11012e3..ff7096458249554153b57249909971c49fa7b8fb 100644 (file)
@@ -2,6 +2,10 @@
 # Makefile for ppc-specific library files..
 #
 
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS           += -mno-minimal-toc
+endif
+
 ifeq ($(CONFIG_PPC_MERGE),y)
 obj-y                  := string.o strcase.o
 obj-$(CONFIG_PPC32)    += div64.o copy_32.o checksum_32.o
index f5f9859a833886c1cfe3ba71426aa5e9cbf8dee8..3145d610b5b0b18f265e787da65f87c8c0e1889e 100644 (file)
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS   += -mno-minimal-toc
+endif
+
 obj-$(CONFIG_OPROFILE) += oprofile.o
 
 DRIVER_OBJS := $(addprefix ../../../drivers/oprofile/, \
index b46ce3b9bb3c4f7cd2cbe9caf77ab74b96518f3a..e5e0ff46690485a374d2c53a70b71c7b73858006 100644 (file)
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS           += -mno-minimal-toc
+endif
+
 obj-y                  := pci.o lpar.o hvCall.o nvram.o reconfig.o \
                           setup.o iommu.o ras.o rtasd.o pci_dlpar.o \
                           firmware.o
index 4c2b356774eada42c083c1796c0f7eec93927088..cef95b023730aefa9aa865a10c4f783bd1c67ce6 100644 (file)
@@ -1,3 +1,7 @@
+ifeq ($(CONFIG_PPC64),y)
+EXTRA_CFLAGS                   += -mno-minimal-toc
+endif
+
 obj-$(CONFIG_MPIC)             += mpic.o
 obj-$(CONFIG_PPC_INDIRECT_PCI) += indirect_pci.o
 obj-$(CONFIG_PPC_I8259)                += i8259.o