ACPI / CPPC: replace writeX/readX to PCC with relaxed version
authorPrakash, Prashanth <pprakash@codeaurora.org>
Wed, 17 Feb 2016 20:21:02 +0000 (13:21 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 22:35:29 +0000 (23:35 +0100)
commitbeee23aebc6650609ef1547f6d813fa5065f74aa
tree3bb482e066420463ade606addde900101738f18b
parent8b0f57889843af6304b80724e36bd3d93b6484b1
ACPI / CPPC: replace writeX/readX to PCC with relaxed version

We do not have a strict read/write order requirement while accessing
PCC subspace. The only requirement is all access should be committed
before triggering the PCC doorbell to transfer the ownership of PCC
to the platform and this requirement is enforced by the PCC driver.

Profiling on a many core system shows improvement of about 1.8us on
average per freq change request(about 10% improvement on average).
Since these operations are executed while holding the pcc_lock,
reducing this time helps the CPPC implementation to scale much
better as the number of cores increases.

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>
drivers/acpi/cppc_acpi.c