• Prakash, Prashanth's avatar
    ACPI / CPPC: Fix invalid PCC channel status errors · 58e1c035
    Prakash, Prashanth authored
    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: default avatarPrashanth Prakash <pprakash@codeaurora.org>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    58e1c035
cppc_acpi.c 39.8 KB