Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07074c78 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpufreq: Always allow update of user policy"

parents b91851b5 c52eb4aa
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -433,6 +433,9 @@ static ssize_t store_##file_name \
	if (ret)							\
		return -EINVAL;						\
									\
	new_policy.min = new_policy.user_policy.min;			\
	new_policy.max = new_policy.user_policy.max;			\
									\
	ret = sscanf(buf, "%u", &new_policy.object);			\
	if (ret != 1)							\
		return -EINVAL;						\
@@ -441,7 +444,9 @@ static ssize_t store_##file_name \
	if (ret)							\
		pr_err("cpufreq: Frequency verification failed\n");	\
									\
	policy->user_policy.object = new_policy.object;			\
	policy->user_policy.min = new_policy.min;			\
	policy->user_policy.max = new_policy.max;			\
									\
	ret = cpufreq_set_policy(policy, &new_policy);		\
									\
	return ret ? ret : count;					\