summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorPrakash, Prashanth <pprakash@codeaurora.org>2016-08-16 23:39:44 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-31 02:02:34 +0300
commit139aee73f0c23b95a7e919b8f7e51ccf2d221181 (patch)
tree54af1fac0f5f558e9bf51e67f9b828144f4c11e0 /include/acpi
parent8482ef8c6e684a1bba703c330e0bafe2d1d29ef7 (diff)
downloadlinux-139aee73f0c23b95a7e919b8f7e51ccf2d221181.tar.xz
ACPI / CPPC: check for error bit in PCC status field
PCC status field exposes an error bit(2) to indicate any errors during the execution of last comamnd. This patch checks the error bit before notifying success/failure to the cpufreq driver. Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/cppc_acpi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h
index f50b5339b888..0e83cc3009bc 100644
--- a/include/acpi/cppc_acpi.h
+++ b/include/acpi/cppc_acpi.h
@@ -24,7 +24,9 @@
#define CPPC_NUM_ENT 21
#define CPPC_REV 2
-#define PCC_CMD_COMPLETE 1
+#define PCC_CMD_COMPLETE_MASK (1 << 0)
+#define PCC_ERROR_MASK (1 << 2)
+
#define MAX_CPC_REG_ENT 19
/* CPPC specific PCC commands. */