Commit 3162d424 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] speedstep-centrino: Remove unnecessary vendor checks.

This is only used on Intel, and if some other vendor ever clones speedstep,
we can add an additional check in the init routine.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent dfd64ec8
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
struct cpu_id struct cpu_id
{ {
__u8 x86_vendor; /* CPU vendor */
__u8 x86; /* CPU family */ __u8 x86; /* CPU family */
__u8 x86_model; /* model */ __u8 x86_model; /* model */
__u8 x86_mask; /* stepping */ __u8 x86_mask; /* stepping */
...@@ -53,9 +52,9 @@ enum { ...@@ -53,9 +52,9 @@ enum {
}; };
static const struct cpu_id cpu_ids[] = { static const struct cpu_id cpu_ids[] = {
[CPU_BANIAS] = { X86_VENDOR_INTEL, 6, 9, 5 }, [CPU_BANIAS] = { 6, 9, 5 },
[CPU_DOTHAN_A1] = { X86_VENDOR_INTEL, 6, 13, 1 }, [CPU_DOTHAN_A1] = { 6, 13, 1 },
[CPU_DOTHAN_B0] = { X86_VENDOR_INTEL, 6, 13, 6 }, [CPU_DOTHAN_B0] = { 6, 13, 6 },
}; };
#define N_IDS (sizeof(cpu_ids)/sizeof(cpu_ids[0])) #define N_IDS (sizeof(cpu_ids)/sizeof(cpu_ids[0]))
...@@ -265,7 +264,6 @@ static inline int centrino_cpu_init_table(struct cpufreq_policy *policy) { retur ...@@ -265,7 +264,6 @@ static inline int centrino_cpu_init_table(struct cpufreq_policy *policy) { retur
static int centrino_verify_cpu_id(const struct cpuinfo_x86 *c, const struct cpu_id *x) static int centrino_verify_cpu_id(const struct cpuinfo_x86 *c, const struct cpu_id *x)
{ {
if ((c->x86 == x->x86) && if ((c->x86 == x->x86) &&
(c->x86_vendor == x->x86_vendor) &&
(c->x86_model == x->x86_model) && (c->x86_model == x->x86_model) &&
(c->x86_mask == x->x86_mask)) (c->x86_mask == x->x86_mask))
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment