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: Amar Singhal <asinghal@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
1d75780282
commit
dccac460c0
@@ -477,6 +477,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
|
||||
|
||||
Reference in New Issue
Block a user