diff options
author | Josh Triplett <josh@joshtriplett.org> | 2013-10-30 08:09:45 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2014-08-17 15:54:00 -0700 |
commit | 9def39be4e960917fcb80514ff23651f9ec97193 (patch) | |
tree | fc898efcdaf87f15e70576481111291a4b8ed3ef /arch/x86/kernel/cpu/common.c | |
parent | 39f838e06f46576694d425ac30fe8ff1e214fc0b (diff) | |
download | blackbird-op-linux-9def39be4e960917fcb80514ff23651f9ec97193.tar.gz blackbird-op-linux-9def39be4e960917fcb80514ff23651f9ec97193.zip |
x86: Support compiling out human-friendly processor feature names
The table mapping CPUID bits to human-readable strings takes up a
non-trivial amount of space, and only exists to support /proc/cpuinfo
and a couple of kernel messages. Since programs depend on the format of
/proc/cpuinfo, force inclusion of the table when building with /proc
support; otherwise, support omitting that table to save space, in which
case the kernel messages will print features numerically instead.
In addition to saving 1408 bytes out of vmlinux, this also saves 1373
bytes out of the uncompressed setup code, which contributes directly to
the size of bzImage.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index e4ab2b42bd6f..c649f236e288 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -346,8 +346,8 @@ static void filter_cpuid_features(struct cpuinfo_x86 *c, bool warn) continue; printk(KERN_WARNING - "CPU: CPU feature %s disabled, no CPUID level 0x%x\n", - x86_cap_flags[df->feature], df->level); + "CPU: CPU feature " X86_CAP_FMT " disabled, no CPUID level 0x%x\n", + x86_cap_flag(df->feature), df->level); } } |