diff options
author | Venki Pallipadi <venkatesh.pallipadi@intel.com> | 2007-07-11 15:18:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 13:55:54 -0400 |
commit | 1d67953f2bda8876045c24ae58841f27d9bb7572 (patch) | |
tree | 4f91c4037c6e8996cb3164f3f20489c471676f6c /arch/x86_64 | |
parent | e087db510cd96a75a614f6f6fcd5499ab21cb087 (diff) |
Use a new CPU feature word to cover features that are spread around
Some Intel features are spread around in different CPUID leafs like 0x5,
0x6 and 0xA. Make this feature detection code common across i386 and
x86_64.
Display Intel Dynamic Acceleration feature in /proc/cpuinfo. This feature
will be enabled automatically by current acpi-cpufreq driver.
Refer to Intel Software Developer's Manual for more details about the feature.
Thanks to hpa (H Peter Anvin) for the making the actual code detecting the
scattered features data-driven.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/x86_64/kernel/setup.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/Makefile b/arch/x86_64/kernel/Makefile index de1de8a2fd84..47f1dc30bf56 100644 --- a/arch/x86_64/kernel/Makefile +++ b/arch/x86_64/kernel/Makefile | |||
@@ -44,6 +44,7 @@ obj-$(CONFIG_PCI) += early-quirks.o | |||
44 | 44 | ||
45 | obj-y += topology.o | 45 | obj-y += topology.o |
46 | obj-y += intel_cacheinfo.o | 46 | obj-y += intel_cacheinfo.o |
47 | obj-y += addon_cpuid_features.o | ||
47 | obj-y += pcspeaker.o | 48 | obj-y += pcspeaker.o |
48 | 49 | ||
49 | CFLAGS_vsyscall.o := $(PROFILING) -g0 | 50 | CFLAGS_vsyscall.o := $(PROFILING) -g0 |
@@ -55,6 +56,7 @@ cpuid-$(subst m,y,$(CONFIG_X86_CPUID)) += ../../i386/kernel/cpuid.o | |||
55 | topology-y += ../../i386/kernel/topology.o | 56 | topology-y += ../../i386/kernel/topology.o |
56 | microcode-$(subst m,y,$(CONFIG_MICROCODE)) += ../../i386/kernel/microcode.o | 57 | microcode-$(subst m,y,$(CONFIG_MICROCODE)) += ../../i386/kernel/microcode.o |
57 | intel_cacheinfo-y += ../../i386/kernel/cpu/intel_cacheinfo.o | 58 | intel_cacheinfo-y += ../../i386/kernel/cpu/intel_cacheinfo.o |
59 | addon_cpuid_features-y += ../../i386/kernel/cpu/addon_cpuid_features.o | ||
58 | quirks-y += ../../i386/kernel/quirks.o | 60 | quirks-y += ../../i386/kernel/quirks.o |
59 | i8237-y += ../../i386/kernel/i8237.o | 61 | i8237-y += ../../i386/kernel/i8237.o |
60 | msr-$(subst m,y,$(CONFIG_X86_MSR)) += ../../i386/kernel/msr.o | 62 | msr-$(subst m,y,$(CONFIG_X86_MSR)) += ../../i386/kernel/msr.o |
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index dc7630d06460..33ef718f8cb5 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -846,6 +846,8 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) | |||
846 | c->x86_capability[2] = cpuid_edx(0x80860001); | 846 | c->x86_capability[2] = cpuid_edx(0x80860001); |
847 | } | 847 | } |
848 | 848 | ||
849 | init_scattered_cpuid_features(c); | ||
850 | |||
849 | c->apicid = phys_pkg_id(0); | 851 | c->apicid = phys_pkg_id(0); |
850 | 852 | ||
851 | /* | 853 | /* |
@@ -973,6 +975,12 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
973 | "osvw", "ibs", NULL, NULL, NULL, NULL, | 975 | "osvw", "ibs", NULL, NULL, NULL, NULL, |
974 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | 976 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
975 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | 977 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
978 | |||
979 | /* Auxiliary (Linux-defined) */ | ||
980 | "ida", NULL, NULL, NULL, NULL, NULL, NULL, NULL, | ||
981 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | ||
982 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | ||
983 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | ||
976 | }; | 984 | }; |
977 | static char *x86_power_flags[] = { | 985 | static char *x86_power_flags[] = { |
978 | "ts", /* temperature sensor */ | 986 | "ts", /* temperature sensor */ |