lmkd: fix the cgroup attribute name to MemCgroupEventControl am: bf819b5593 am: 14512ee7af am: 09c2245060

Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2080181

Change-Id: Ibb8a4af76320e100862d5d690f9a6df07f39e73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yongqin Liu 2022-04-29 19:16:35 +00:00 committed by Automerger Merge Worker
commit 7d2fad9ecd
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;