mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-11-30 16:40:31 +00:00
IssueNo:#I50KK2
Description: Delete invalid code Sig:SIG_ApplicationFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: jsjzju <jinsenjun@huawei.com> Change-Id: I0287cfc778b2fae11599a3e6b01dca5a8fafeb46
This commit is contained in:
parent
842ba248b0
commit
5c659c3bb3
@ -37,23 +37,7 @@
|
||||
"chmod 0755 /dev/cpuctl/tasks",
|
||||
"chmod 0755 /dev/cpuctl/background",
|
||||
"chmod 0755 /dev/cpuctl/background/tasks",
|
||||
"write /dev/cpuctl/background/cpu.shares 512",
|
||||
"mkdir /dev/freezer",
|
||||
"mount cgroup none /dev/freezer freezer",
|
||||
"mkdir /dev/freezer/frozen",
|
||||
"mkdir /dev/freezer/thawed",
|
||||
"chown system system /dev/freezer",
|
||||
"chown system system /dev/freezer/frozen",
|
||||
"chown system system /dev/freezer/frozen/tasks",
|
||||
"chown system system /dev/freezer/thawed",
|
||||
"chown system system /dev/freezer/thawed/tasks",
|
||||
"chmod 0755 /dev/freezer",
|
||||
"chmod 0755 /dev/freezer/frozen",
|
||||
"chmod 0755 /dev/freezer/frozen/tasks",
|
||||
"chmod 0755 /dev/freezer/thawed",
|
||||
"chmod 0755 /dev/freezer/thawed/tasks",
|
||||
"write /dev/freezer/frozen/freezer.state FROZEN",
|
||||
"write /dev/freezer/thawed/freezer.state THAWED"
|
||||
"write /dev/cpuctl/background/cpu.shares 512"
|
||||
]
|
||||
}, {
|
||||
"name" : "services:foundation",
|
||||
|
@ -25,31 +25,6 @@ on init
|
||||
# write cpus in background
|
||||
write /dev/cpuset/background/cpus 0
|
||||
|
||||
# freezer subsystem
|
||||
# create freezer of cgroup point
|
||||
mkdir /dev/freezer
|
||||
chown system system /dev/freezer
|
||||
chmod 0755 /dev/freezer
|
||||
mount cgroup none /dev/freezer freezer
|
||||
|
||||
# create directory of frozen and thawed
|
||||
mkdir /dev/freezer/frozen
|
||||
mkdir /dev/freezer/thawed
|
||||
|
||||
# change permissions
|
||||
chown system system /dev/freezer/frozen
|
||||
chown system system /dev/freezer/frozen/tasks
|
||||
chown system system /dev/freezer/thawed
|
||||
chown system system /dev/freezer/thawed/tasks
|
||||
chmod 0755 /dev/freezer/frozen
|
||||
chmod 0755 /dev/freezer/frozen/tasks
|
||||
chmod 0755 /dev/freezer/thawed
|
||||
chmod 0755 /dev/freezer/thawed/tasks
|
||||
|
||||
# write freezer state
|
||||
write /dev/freezer/frozen/freezer.state FROZEN
|
||||
write /dev/freezer/thawed/freezer.state THAWED
|
||||
|
||||
on boot
|
||||
# Add permision for powermanager to control suspend
|
||||
# It should be executed before foundation started
|
||||
|
Loading…
Reference in New Issue
Block a user