Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 979591b6 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

lmkd: Select in-kernel vs userspace lmk based on kernel driver presence



Currently selection criteria for in-kernel vs userspace lmk is kernel
driver presence and device not being a Go device. This change removes
Go device check leaving kernel driver presence to be the only selection
criteria.

Bug: 71502948

Change-Id: I394a7920433a8d090e207ea86296356413a63fe7
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent caa2dc56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1038,7 +1038,7 @@ static int init(void) {
    maxevents++;

    has_inkernel_module = !access(INKERNEL_MINFREE_PATH, W_OK);
    use_inkernel_interface = has_inkernel_module && !is_go_device;
    use_inkernel_interface = has_inkernel_module;

    if (use_inkernel_interface) {
        ALOGI("Using in-kernel low memory killer interface");