diff options
| author | Michael Neuling <[email protected]> | 2016-03-21 16:54:52 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2016-03-22 00:08:55 +0000 |
| commit | 3e5963bc343b3fb4ca045e9d1c14cb9ce89234b8 (patch) | |
| tree | 216fb97bcf417def706207afe7e44f77fb6d8c53 /net/switchdev/switchdev.c | |
| parent | cpufreq: acpi-cpufreq: Clean up hot plug notifier callback (diff) | |
| download | kernel-3e5963bc343b3fb4ca045e9d1c14cb9ce89234b8.tar.gz kernel-3e5963bc343b3fb4ca045e9d1c14cb9ce89234b8.zip | |
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 <[email protected]>
Signed-off-by: Shilpasri G Bhat <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
