ACPI / CPPC: restructure read/writes for efficient sys mapped reg ops
authorAshwin Chaugule <ashwin.chaugule@linaro.org>
Tue, 16 Aug 2016 20:39:38 +0000 (14:39 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Aug 2016 23:02:33 +0000 (01:02 +0200)
commit5bbb86aa4b8d84395e42cd05448820651d79f349
tree31dd18e064b3f61fc969b617b3dba46804e92577
parentaca314efb177274b458f7e72c5ff375c80a5c2d0
ACPI / CPPC: restructure read/writes for efficient sys mapped reg ops

For cases where sys mapped CPC registers need to be accessed
frequently, it helps immensly to pre-map them rather than map
and unmap for each operation. e.g. case where feedback counters
are sys mem map registers.

Restructure cpc_read/write and the cpc_regs structure to allow
pre-mapping the system addresses and unmap them when the CPU exits.

Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/cppc_acpi.c
include/acpi/cppc_acpi.h