summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorPrakash, Prashanth <pprakash@codeaurora.org>2016-02-17 13:21:00 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-03-09 23:35:29 +0100
commit77e3d86f2f8c533c9c72fb5585b623b447d9bd57 (patch)
tree48f2f638b65d7cdd25406d07b981c07ec1f7633d /drivers/mailbox
parentad62e1e67751d21a3e15bca9d3ededc73de2cfa0 (diff)
downloadop-kernel-dev-77e3d86f2f8c533c9c72fb5585b623b447d9bd57.zip
op-kernel-dev-77e3d86f2f8c533c9c72fb5585b623b447d9bd57.tar.gz
ACPI / CPPC: optimized cpc_read and cpc_write
cpc_read and cpc_write are used while holding the pcc_lock spin_lock, so they need to be as fast as possible. acpi_os_read/write_memory APIs linearly search through a list for cached mapping which is quite expensive. Since the PCC subspace is already mapped into virtual address space during initialization, we can just add the offset and access the necessary CPPC registers. This patch + similar changes to PCC driver reduce the time per freq. transition from around 200us to about 20us for the CPPC cpufreq driver. Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org> Acked-by: Ashwin Chaugule <ashwin.chaugule@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud