summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/domain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index ede0f576efe6..90a9828fcb2f 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -387,6 +387,9 @@ static int genpd_set_performance_state(struct device *dev, unsigned int state)
int ret;
prev_state = gpd_data->performance_state;
+ if (prev_state == state)
+ return 0;
+
gpd_data->performance_state = state;
state = _genpd_reeval_performance_state(genpd, state);