Skip to content

Commit

Permalink
fixup! cpufreq: apple-soc: Add new driver to control Apple SoC CPU P-…
Browse files Browse the repository at this point in the history
…states

Signed-off-by: Janne Grunau <j@jannau.net>
  • Loading branch information
jannau committed Feb 15, 2022
1 parent 76613db commit 3b4adbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/cpufreq/apple-soc-cpufreq.c
Expand Up @@ -68,9 +68,9 @@ static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, unsigned
unsigned int pstate = policy->freq_table[index].driver_data;
u64 reg;

if (readq_poll_timeout(priv->reg_base + APPLE_CLUSTER_PSTATE, reg,
!(reg & APPLE_CLUSTER_PSTATE_BUSY), 2,
APPLE_CLUSTER_SWITCH_TIMEOUT)) {
if (readq_poll_timeout_atomic(priv->reg_base + APPLE_CLUSTER_PSTATE, reg,
!(reg & APPLE_CLUSTER_PSTATE_BUSY), 2,
APPLE_CLUSTER_SWITCH_TIMEOUT)) {
return -EIO;
}

Expand Down

0 comments on commit 3b4adbb

Please sign in to comment.