pass-hal: standard: Fix bug for wrong path of cpufreq sysfs entries accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171221.070828 submit/tizen_4.0/20171220.050625 tizen_4.0.IoT.p2_release
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 5 Sep 2017 05:35:51 +0000 (14:35 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Dec 2017 05:05:01 +0000 (14:05 +0900)
The commit 2727486add81b ("pass-hal: standard: Fix wrong info of
sysfs entries and add new nodes") modified/added the following
sysfs patch for cpufreq. But, it was wrong. In result, when pass stopped,
happen error which could not write the up_threshold.
- /sys/device/system/cpu/cpufreq/ondemand/up_threshold
- /sys/device/system/cpu/cpufreq/ondemand/sampling_rate

So, this patch fixes the wrong path of cpufreq sysfs entries as following:
- /sys/device/system/cpu/*/cpufreq/ondemand/up_threshold
- /sys/device/system/cpu/*/cpufreq/ondemand/sampling_rate

Fixes: 2727486add81b ("pass-hal: standard: Fix wrong info of
sysfs entries and add new nodes")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Change-Id: I7bd0228710887f2f7b817084434884cef35b34e4

scripts/pass-hal.conf

index bb19af7..bafc1ee 100644 (file)
@@ -14,10 +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/sampling_rate  0660    root    system_fw       -
-t      /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate  -       -       -       -       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       -