cpufreq: intel_pstate: Remove duplicate CPU ID check
authorStratos Karafotis <stratosk@semaphore.gr>
Mon, 9 Jun 2014 21:00:09 +0000 (00:00 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Jun 2014 20:49:41 +0000 (22:49 +0200)
We check the CPU ID during driver init. There is no need
to do it again per logical CPU initialization.

So, remove the duplicate check.

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index aebd4572eb6d7554d08da2ec316c898b2114eb8f..4e7f492ad5839d43ef02a092d1b8cd9fde735278 100644 (file)
@@ -691,14 +691,8 @@ MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
 
 static int intel_pstate_init_cpu(unsigned int cpunum)
 {
-
-       const struct x86_cpu_id *id;
        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);
        if (!all_cpu_data[cpunum])
                return -ENOMEM;