|
@@ -691,14 +691,8 @@ MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
|
|
|
|
|
|
|
|
static int intel_pstate_init_cpu(unsigned int cpunum)
|
|
static int intel_pstate_init_cpu(unsigned int cpunum)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
- const struct x86_cpu_id *id;
|
|
|
|
|
struct cpudata *cpu;
|
|
struct cpudata *cpu;
|
|
|
|
|
|
|
|
- id = x86_match_cpu(intel_pstate_cpu_ids);
|
|
|
|
|
- if (!id)
|
|
|
|
|
- return -ENODEV;
|
|
|
|
|
-
|
|
|
|
|
all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), GFP_KERNEL);
|
|
all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), GFP_KERNEL);
|
|
|
if (!all_cpu_data[cpunum])
|
|
if (!all_cpu_data[cpunum])
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|