]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: configuration options to compile out x86 CPU support code
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 5 Aug 2008 09:45:19 +0000 (11:45 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 Aug 2008 14:05:48 +0000 (16:05 +0200)
commit8d02c2110b3fb8e2700b31596a582a2989fd72ba
treec56374a7151020a580504a6fd8669cea9b7d629a
parent774400a3ba23b63f4de39e67ce6c4e48935809dc
x86: configuration options to compile out x86 CPU support code

This patch adds some configuration options that allow to compile out
CPU vendor-specific code in x86 kernels (in arch/x86/kernel/cpu). The
new configuration options are only visible when CONFIG_EMBEDDED is
selected, as they are mostly interesting for space savings reasons.

An example of size saving, on x86 with only Intel CPU support:

   text    data     bss     dec     hex filename
1125479  118760  212992 1457231  163c4f vmlinux.old
1121355  116536  212992 1450883  162383 vmlinux
  -4124   -2224       0   -6348   -18CC +/-

However, I'm not exactly sure that the Kconfig wording is correct with
regard to !64BIT / 64BIT.

[ mingo@elte.hu: convert macro to inline ]

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig.cpu
arch/x86/kernel/cpu/Makefile
include/asm-x86/bugs.h