lmkd: fix the cgroup attribute name to MemCgroupEventControl

which was CgroupEventControl before, but it's not the one
that definied in system/core/libprocessgroup/profiles/task_profiles.json.

And it causes lmkd crash for some setups like 4.19q + AOSP Master

Bug: 230642311

Test: boot the 4.19q + AOSP master setup with hikey960 board

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I87b1ea2040f21c52d549db58692fc8a2b114f8e6
This commit is contained in:
Yongqin Liu 2022-04-29 18:39:08 +08:00
parent f70a8a260f
commit bf819b5593
1 changed files with 1 additions and 1 deletions

View File

@ -3239,7 +3239,7 @@ static bool init_mp_common(enum vmpressure_level level) {
goto err_open_mpfd;
}
evctlfd = open(GetCgroupAttributePath("CgroupEventControl").c_str(), O_WRONLY | O_CLOEXEC);
evctlfd = open(GetCgroupAttributePath("MemCgroupEventControl").c_str(), O_WRONLY | O_CLOEXEC);
if (evctlfd < 0) {
ALOGI("No kernel memory cgroup event control (errno=%d)", errno);
goto err_open_evctlfd;