arch: x86: Introduce new config for CPU legacy model names

Add a new config X86_MODEL_TABLE to compile out the legacy model tables
for 32bit systems in order to save space. The new config depends on
X86_32 and PROC_FS.

Model names tables for CPUs that do not have the brand-string CPUIDs
(0x80000002-0x80000004) are kept in field legacy_model in struct
cpu_dev. Previously, this field was wrapped inside ifdef CONFIG_X86_32.
This patch moves this field inside ifdef CONFIG_X86_MODEL_TABLE so that
it can be compiled out on x86-32 systems too.

bloat-o-meter output:
add/remove: 0/0 grow/shrink: 0/9 up/down: 0/-2780 (-2780)
function                                     old     new   delta
identify_cpu                                 777     717     -60
umc_cpu_dev                                  380      40    -340
transmeta_cpu_dev                            380      40    -340
nsc_cpu_dev                                  380      40    -340
intel_cpu_dev                                380      40    -340
default_cpu                                  380      40    -340
cyrix_cpu_dev                                380      40    -340
centaur_cpu_dev                              380      40    -340
amd_cpu_dev                                  380      40    -340

Signed-off-by: Catalina Mocanu <catalina.mocanu@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
6 files changed