pass-hal: standard: Fix wrong info of sysfs entries and add new nodes 49/150949/1
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 Sep 2017 06:42:23 +0000 (15:42 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 Sep 2017 06:42:23 +0000 (15:42 +0900)
This patch fixes the wrong permission and patch for the sysfs entries
and add the new sysfs entries in order to handle the cpu/bus/gpu h/w
resources as following:

Fixed sysfs entries as following:
- /sys/device/system/cpu/cpufreq/ondemand/up_threshold
- /sys/devices/platform/soc/*/devfreq/*/governor

Additional sysfs entries as following:
- /sys/device/system/cpu/cpufreq/ondemand/sampling_rate
- /sys/devices/platform/soc/*/devfreq/*/polling_interval

Change-Id: Ibe632576c447c940f3c732a47880ba835401df06
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
scripts/pass-hal.conf

index c7c66f1..bb19af7 100644 (file)
@@ -14,8 +14,10 @@ z    /sys/devices/system/cpu/*/cpufreq/scaling_min_freq      0660    root    system_fw       -
 t      /sys/devices/system/cpu/*/cpufreq/scaling_min_freq      -       -       -       -       security.SMACK64="System"
 z      /sys/devices/system/cpu/*/cpufreq/scaling_max_freq      0660    root    system_fw       -
 t      /sys/devices/system/cpu/*/cpufreq/scaling_max_freq      -       -       -       -       security.SMACK64="System"
-z      /sys/devices/system/cpu/*/cpufreq/ondemand/up_threshold 0660    root    system_fw       -
-t      /sys/devices/system/cpu/*/cpufreq/ondemand/up_threshold -       -       -       -       security.SMACK64="System"
+z      /sys/devices/system/cpu/cpufreq/ondemand/up_threshold   0660    root    system_fw       -
+t      /sys/devices/system/cpu/cpufreq/ondemand/up_threshold   -       -       -       -       security.SMACK64="System"
+z      /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate  0660    root    system_fw       -
+t      /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate  -       -       -       -       security.SMACK64="System"
 z      /sys/class/thermal/*/temp       0440    root    system_fw       -
 t      /sys/class/thermal/*/temp       -       -       -       -       security.SMACK64="System"
 z      /sys/class/thermal/*/policy     0440    root    system_fw       -
@@ -26,12 +28,14 @@ z   /sys/kernel/debug/cpufreq/*/load_table  0440    root    system_fw       -
 t      /sys/kernel/debug/cpufreq/*/load_table  -       -       -       -       security.SMACK64="System"
 z      /sys/devices/platform/soc/*/devfreq/*/cur_freq  0440    root    system_fw       -
 t      /sys/devices/platform/soc/*/devfreq/*/cur_freq  -       -       -       -       security.SMACK64="System"
-z      /sys/devices/platform/soc/*/devfreq/*/governor  0440    root    system_fw       -
+z      /sys/devices/platform/soc/*/devfreq/*/governor  0660    root    system_fw       -
 t      /sys/devices/platform/soc/*/devfreq/*/governor  -       -       -       -       security.SMACK64="System"
 z      /sys/devices/platform/soc/*/devfreq/*/min_freq  0660    root    system_fw       -
 t      /sys/devices/platform/soc/*/devfreq/*/min_freq  -       -       -       -       security.SMACK64="System"
 z      /sys/devices/platform/soc/*/devfreq/*/max_freq  0660    root    system_fw       -
 t      /sys/devices/platform/soc/*/devfreq/*/max_freq  -       -       -       -       security.SMACK64="System"
+z      /sys/devices/platform/soc/*/devfreq/*/polling_interval  0660    root    system_fw       -
+t      /sys/devices/platform/soc/*/devfreq/*/polling_interval  -       -       -       -       security.SMACK64="System"
 z      /sys/devices/platform/soc/*/devfreq/*/available_frequencies     0440    root    system_fw       -
 t      /sys/devices/platform/soc/*/devfreq/*/available_frequencies     -       -       -       -       security.SMACK64="System"
 z      /sys/kernel/debug/fault_around_bytes    0660    root    system_fw       -