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

Commit 9a60eb6f authored by Junjie Wu's avatar Junjie Wu
Browse files

Revert "cpufreq: make the "scaling_cur_freq" sysfs entry pollable"



This reverts commit ee974af4.

sysfs_notify of scaling_cur_freq is no longer used by userspace
components. Since sysfs_notify contends on a single mutex, it could
add long delay to CPU frequency scaling.

Remove the sysfs_notify() to speed up CPU frequency scaling.

Change-Id: I8203904d26bb49e465acd2307574c84f1453bd24
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 003a7b03
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -315,10 +315,8 @@ static void __cpufreq_notify_transition(struct cpufreq_policy *policy,
		trace_cpu_frequency(freqs->new, freqs->cpu);
		srcu_notifier_call_chain(&cpufreq_transition_notifier_list,
				CPUFREQ_POSTCHANGE, freqs);
		if (likely(policy) && likely(policy->cpu == freqs->cpu)) {
		if (likely(policy) && likely(policy->cpu == freqs->cpu))
			policy->cur = freqs->new;
			sysfs_notify(&policy->kobj, NULL, "scaling_cur_freq");
		}
		break;
	}
}