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: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
parent
30854e70d9
commit
e6613ea04e
2
lmkd.c
2
lmkd.c
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue