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

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

Merge "sched: Update min/max capacity for the CPUFREQ_CREATE_POLICY notifier"

parents c11f4a48 24e26f1e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2733,10 +2733,11 @@ static int cpufreq_notifier_policy(struct notifier_block *nb,
	/* Initialized to policy->max in case policy->related_cpus is empty! */
	unsigned int orig_max_freq = policy->max;

	if (val != CPUFREQ_NOTIFY && val != CPUFREQ_REMOVE_POLICY)
	if (val != CPUFREQ_NOTIFY && val != CPUFREQ_REMOVE_POLICY &&
						val != CPUFREQ_CREATE_POLICY)
		return 0;

	if (val == CPUFREQ_REMOVE_POLICY) {
	if (val == CPUFREQ_REMOVE_POLICY || val == CPUFREQ_CREATE_POLICY) {
		update_min_max_capacity();
		return 0;
	}