summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/acpi-cpufreq.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2016-03-21 22:24:52 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-03-22 01:08:55 +0100
commit3e5963bc343b3fb4ca045e9d1c14cb9ce89234b8 (patch)
tree216fb97bcf417def706207afe7e44f77fb6d8c53 /drivers/cpufreq/acpi-cpufreq.c
parented72662a84771fec1337dd8b187e070af6fd3890 (diff)
downloadop-kernel-dev-3e5963bc343b3fb4ca045e9d1c14cb9ce89234b8.zip
op-kernel-dev-3e5963bc343b3fb4ca045e9d1c14cb9ce89234b8.tar.gz
cpufreq: powernv: Define per_cpu chip pointer to optimize hot-path
Commit 96c4726f01cd "cpufreq: powernv: Remove cpu_to_chip_id() from hot-path" introduced a 'core_to_chip_map' array to cache the chip-ids of all cores. Replace this with a per-CPU variable that stores the pointer to the chip-array. This removes the linear lookup and provides a neater and simpler solution. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/acpi-cpufreq.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud