summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2014-04-29 19:14:37 -0700
committerRuchi Kandoi <kandoiruchi@google.com>2014-05-01 17:30:41 +0000
commit75b287b771b302c99797d812122b72f83d2f56f9 (patch)
treed4a7904fbb28d8ab3646f4a049143a59f5199847 /init
parent9ed86eff8890446f0d0b281a26a71c233f95f4c0 (diff)
downloadsystem_core-75b287b771b302c99797d812122b72f83d2f56f9.zip
system_core-75b287b771b302c99797d812122b72f83d2f56f9.tar.gz
system_core-75b287b771b302c99797d812122b72f83d2f56f9.tar.bz2
ueventd: Ueventd changes the permission of sysfs files for max/min
cpufreq The owner and permissions for the sysfs file /sys/devices/system/cpu*/cpufreq/scaling_max/min_freq is changed. This would allow the PowerHAL to change the max/min cpufreq even after the associated CPU's are hotplugged out and back in. Change-Id: Ibe0b4aaf3db555ed48e89a7fcd0c5fd3a18cf233 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Diffstat (limited to 'init')
-rw-r--r--init/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c
index 80c6d75..5d7ad3b 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -699,7 +699,7 @@ static void handle_generic_device_event(struct uevent *uevent)
static void handle_device_event(struct uevent *uevent)
{
- if (!strcmp(uevent->action,"add") || !strcmp(uevent->action, "change"))
+ if (!strcmp(uevent->action,"add") || !strcmp(uevent->action, "change") || !strcmp(uevent->action, "online"))
fixup_sys_perms(uevent->path);
if (!strncmp(uevent->subsystem, "block", 5)) {