am 1abf4918: am c7580819: Merge "ueventd: Ueventd changes the permission of sysfs files for max/min cpufreq"

* commit '1abf49180acece56ff7573d53b65c6a28d2a4cb2':
  ueventd: Ueventd changes the permission of sysfs files for max/min cpufreq
This commit is contained in:
Ruchi Kandoi 2014-05-01 17:48:51 +00:00 committed by Android Git Automerger
commit 57569b3d3c
2 changed files with 3 additions and 1 deletions

View File

@ -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)) {

View File

@ -91,3 +91,5 @@ subsystem adf
/sys/devices/virtual/input/input* enable 0660 root input
/sys/devices/virtual/input/input* poll_delay 0660 root input
/sys/devices/virtual/usb_composite/* enable 0664 root system
/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system