summaryrefslogtreecommitdiffstats
path: root/drivers/staging/erofs
diff options
context:
space:
mode:
authorSrinivas Pandruvada2019-03-25 17:04:39 +0100
committerRafael J. Wysocki2019-03-25 23:57:21 +0100
commitedef1ef134180149694b86386277076f566d165c (patch)
tree6538951169dd5373f32d09b8a316be312a9758d7 /drivers/staging/erofs
parentLinux 5.1-rc2 (diff)
downloadkernel-qcow2-linux-edef1ef134180149694b86386277076f566d165c.tar.gz
kernel-qcow2-linux-edef1ef134180149694b86386277076f566d165c.tar.xz
kernel-qcow2-linux-edef1ef134180149694b86386277076f566d165c.zip
ACPI / CPPC: Fix guaranteed performance handling
As per the ACPI specification, "Guaranteed Performance Register" is a "Buffer" field and it cannot be "Integer", so treat the "Integer" type for "Guaranteed Performance Register" field as invalid and ignore its value in that case. Also save one cpc_read() call when "Guaranteed Performance Register" is not present, which means a register defined as: "Register(SystemMemory, 0, 0, 0, 0)". Fixes: 29523f095397 ("ACPI / CPPC: Add support for guaranteed performance") Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Cc: 4.20+ <stable@vger.kernel.org> # 4.20+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/staging/erofs')
0 files changed, 0 insertions, 0 deletions