]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
jump label/x86/sparc64: Remove !CC_OPTIMIZE_FOR_SIZE config conditions
authorSteven Rostedt <srostedt@redhat.com>
Thu, 23 Sep 2010 03:10:23 +0000 (23:10 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Sep 2010 03:10:23 +0000 (23:10 -0400)
The !CC_OPTIMIZE_FOR_SIZE was added to enable the jump label functionality
because Jason noticed that the gcc option would not optimize the labels
and may even hurt performance.

But this is a gcc problem not a kernel one. Removing this condition should
add motivation to the gcc developers to actually fix it.

Cc: Jason Baron <jbaron@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/sparc/Kconfig
arch/x86/Kconfig

index a81b04e07fe76d97efcf6c90230c8272528aa19b..9212cd42a832339bd8160e9b87080fff135169e3 100644 (file)
@@ -30,7 +30,7 @@ config SPARC
        select PERF_USE_VMALLOC
        select HAVE_DMA_ATTRS
        select HAVE_DMA_API_DEBUG
-       select HAVE_ARCH_JUMP_LABEL if !CC_OPTIMIZE_FOR_SIZE
+       select HAVE_ARCH_JUMP_LABEL
 
 config SPARC32
        def_bool !64BIT
index afcd6632c94f5d08d3fb2206c9feb644c5b4a376..b431a0824a9356b92d5c9328eb1e3176ba9eb0ff 100644 (file)
@@ -59,7 +59,7 @@ config X86
        select ANON_INODES
        select HAVE_ARCH_KMEMCHECK
        select HAVE_USER_RETURN_NOTIFIER
-       select HAVE_ARCH_JUMP_LABEL if !CC_OPTIMIZE_FOR_SIZE
+       select HAVE_ARCH_JUMP_LABEL
 
 config INSTRUCTION_DECODER
        def_bool (KPROBES || PERF_EVENTS)