aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mailbox/pcc.c
diff options
context:
space:
mode:
authorPrakash, Prashanth <pprakash@codeaurora.org>2018-04-24 17:10:02 -0600
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-05-10 17:16:22 +0200
commit58e1c03536c959e0d45fde8261cb9c15da893fe6 (patch)
treeeee77e862fce70ff73394ed969b1303d8b3d21c1 /drivers/mailbox/pcc.c
parentACPI / CPPC: Document CPPC sysfs interface (diff)
downloadlinux-dev-58e1c03536c959e0d45fde8261cb9c15da893fe6.tar.xz
linux-dev-58e1c03536c959e0d45fde8261cb9c15da893fe6.zip
ACPI / CPPC: Fix invalid PCC channel status errors
Replace the faulty PCC status register polling code with a iopoll.h macro to fix incorrect reporting of PCC check errors ("PCC check channel failed"). There were potential codepaths where we could incorrectly return PCC channel status as busy even without checking the PCC status register once or not checking the status register before breaking out of the polling loop. For example, if the thread polling PCC status register was preempted and scheduled back after we have crossed the deadline then we can report that the channel is busy even without checking the status register. Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/mailbox/pcc.c')
0 files changed, 0 insertions, 0 deletions