Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: intel_pstate: Remove duplicate CPU ID check

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>

authored by

Stratos Karafotis and committed by
Rafael J. Wysocki
830bcac4 93575b75

-6
-6
drivers/cpufreq/intel_pstate.c
··· 691 691 692 692 static int intel_pstate_init_cpu(unsigned int cpunum) 693 693 { 694 - 695 - const struct x86_cpu_id *id; 696 694 struct cpudata *cpu; 697 - 698 - id = x86_match_cpu(intel_pstate_cpu_ids); 699 - if (!id) 700 - return -ENODEV; 701 695 702 696 all_cpu_data[cpunum] = kzalloc(sizeof(struct cpudata), GFP_KERNEL); 703 697 if (!all_cpu_data[cpunum])