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

Commit 187dd1a2 authored by Amar Singhal's avatar Amar Singhal Committed by Stephen Boyd
Browse files

cpufreq: Make the "scaling_governor" sysfs node pollable



A userspace module programs different qos-rules depending on the
governor running in the system. Make the governor node
pollable, so that the userspace module can be triggered when
the value of the governor changes.

change-Id: Ic89c77c7d16b0f8954d59a211612e9a8e98a2c28
Signed-off-by: default avatarAmar Singhal <asinghal@codeaurora.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 0fa51886
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -492,6 +492,8 @@ static ssize_t store_scaling_governor(struct cpufreq_policy *policy,
	policy->user_policy.policy = policy->policy;
	policy->user_policy.governor = policy->governor;

	sysfs_notify(&policy->kobj, NULL, "scaling_governor");

	if (ret)
		return ret;
	else