]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cpufreq: acpi-cpufreq: Drop acpi_data from struct acpi_cpufreq_data
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Jul 2015 20:11:56 +0000 (22:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Jul 2015 20:11:56 +0000 (22:11 +0200)
commit3427616b2a5aa7f34716278aa6a140378a00a36e
treea3114460360d4b40fa4becf844d206333c402cdf
parentb2f8dc4ce6626e25b164e29cf72b70230a1f1711
cpufreq: acpi-cpufreq: Drop acpi_data from struct acpi_cpufreq_data

After commit 8cfcfd39000d (acpi-cpufreq: Fix an ACPI perf unregister
issue) we store both a pointer to per-CPU data of the first policy
CPU and the number of that CPU which are redundant.

Since the CPU number has to be stored anyway for the unregistration,
the pointer to the CPU's per-CPU data may be dropped and we can
access the data in question via per_cpu_ptr().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/acpi-cpufreq.c