Skip to content

Commit

Permalink
jump label/x86/sparc64: Remove !CC_OPTIMIZE_FOR_SIZE config conditions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Sep 23, 2010
1 parent 95fccd4 commit 46eb3b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 46eb3b6

Please sign in to comment.