Skip to content

Commit 0cb19e5

Browse files
committed
pmdomain: arm: Avoid polling for scmi_perf_domain
It was a mistake to prefer polling based mode when setting a performance level for a domain. Let's instead rely on the protocol to decide what is best and thus avoid polling when possible. Reported-by: Nikunj Kela <[email protected]> Fixes: 2af23ce ("pmdomain: arm: Add the SCMI performance domain") Signed-off-by: Ulf Hansson <[email protected]> Reviewed-by: Sudeep Holla <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 98b1cc8 commit 0cb19e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pmdomain/arm/scmi_perf_domain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ scmi_pd_set_perf_state(struct generic_pm_domain *genpd, unsigned int state)
3535
if (!state)
3636
return -EINVAL;
3737

38-
ret = pd->perf_ops->level_set(pd->ph, pd->domain_id, state, true);
38+
ret = pd->perf_ops->level_set(pd->ph, pd->domain_id, state, false);
3939
if (ret)
4040
dev_warn(&genpd->dev, "Failed with %d when trying to set %d perf level",
4141
ret, state);

0 commit comments

Comments
 (0)