diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-26 12:48:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-26 12:48:52 -0400 |
commit | d485cb9aa2e302fac7e7fb586a0cb4c0a5211be9 (patch) | |
tree | 1dd01f33dc1d77bcc0417497bd1af1c642f6e16d /arch | |
parent | 1292ebb82c00c69cf983e871faa221ce88ed3338 (diff) | |
parent | 765c68bd54c76d4126796e49af2a1428a258429f (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-optimized-inlining
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-optimized-inlining:
generic: make optimized inlining arch-opt-in
x86: add optimized inlining
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/Kconfig | 3 | ||||
-rw-r--r-- | arch/x86/Kconfig.debug | 13 | ||||
-rw-r--r-- | arch/x86/configs/i386_defconfig | 1 | ||||
-rw-r--r-- | arch/x86/configs/x86_64_defconfig | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 4aa4180b106c..2fadf794483d 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -142,6 +142,9 @@ config AUDIT_ARCH | |||
142 | config ARCH_SUPPORTS_AOUT | 142 | config ARCH_SUPPORTS_AOUT |
143 | def_bool y | 143 | def_bool y |
144 | 144 | ||
145 | config ARCH_SUPPORTS_OPTIMIZED_INLINING | ||
146 | def_bool y | ||
147 | |||
145 | # Use the generic interrupt handling code in kernel/irq/: | 148 | # Use the generic interrupt handling code in kernel/irq/: |
146 | config GENERIC_HARDIRQS | 149 | config GENERIC_HARDIRQS |
147 | bool | 150 | bool |
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 239fd9fba0a5..5b1979a45a1e 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -257,3 +257,16 @@ config CPA_DEBUG | |||
257 | Do change_page_attr() self-tests every 30 seconds. | 257 | Do change_page_attr() self-tests every 30 seconds. |
258 | 258 | ||
259 | endmenu | 259 | endmenu |
260 | |||
261 | config OPTIMIZE_INLINING | ||
262 | bool "Allow gcc to uninline functions marked 'inline'" | ||
263 | default y | ||
264 | help | ||
265 | This option determines if the kernel forces gcc to inline the functions | ||
266 | developers have marked 'inline'. Doing so takes away freedom from gcc to | ||
267 | do what it thinks is best, which is desirable for the gcc 3.x series of | ||
268 | compilers. The gcc 4.x series have a rewritten inlining algorithm and | ||
269 | disabling this option will generate a smaller kernel there. Hopefully | ||
270 | this algorithm is so good that allowing gcc4 to make the decision can | ||
271 | become the default in the future, until then this option is there to | ||
272 | test gcc for this. | ||
diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig index 3df340b54e57..ad7ddaaff588 100644 --- a/arch/x86/configs/i386_defconfig +++ b/arch/x86/configs/i386_defconfig | |||
@@ -1421,6 +1421,7 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1421 | # CONFIG_DEBUG_VM is not set | 1421 | # CONFIG_DEBUG_VM is not set |
1422 | # CONFIG_DEBUG_LIST is not set | 1422 | # CONFIG_DEBUG_LIST is not set |
1423 | # CONFIG_FRAME_POINTER is not set | 1423 | # CONFIG_FRAME_POINTER is not set |
1424 | CONFIG_OPTIMIZE_INLINING=y | ||
1424 | # CONFIG_RCU_TORTURE_TEST is not set | 1425 | # CONFIG_RCU_TORTURE_TEST is not set |
1425 | # CONFIG_LKDTM is not set | 1426 | # CONFIG_LKDTM is not set |
1426 | # CONFIG_FAULT_INJECTION is not set | 1427 | # CONFIG_FAULT_INJECTION is not set |
diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig index eef98cb00c62..2d6f5b2809d2 100644 --- a/arch/x86/configs/x86_64_defconfig +++ b/arch/x86/configs/x86_64_defconfig | |||
@@ -1346,6 +1346,7 @@ CONFIG_DEBUG_BUGVERBOSE=y | |||
1346 | # CONFIG_DEBUG_VM is not set | 1346 | # CONFIG_DEBUG_VM is not set |
1347 | # CONFIG_DEBUG_LIST is not set | 1347 | # CONFIG_DEBUG_LIST is not set |
1348 | # CONFIG_FRAME_POINTER is not set | 1348 | # CONFIG_FRAME_POINTER is not set |
1349 | CONFIG_OPTIMIZE_INLINING=y | ||
1349 | # CONFIG_RCU_TORTURE_TEST is not set | 1350 | # CONFIG_RCU_TORTURE_TEST is not set |
1350 | # CONFIG_LKDTM is not set | 1351 | # CONFIG_LKDTM is not set |
1351 | # CONFIG_FAULT_INJECTION is not set | 1352 | # CONFIG_FAULT_INJECTION is not set |