From f7db9130dc164cb2884e9dc08d822ddc5fe322e1 Mon Sep 17 00:00:00 2001 From: Sung-hun Kim Date: Mon, 8 Jul 2024 14:06:12 +0900 Subject: [PATCH] memory: Change path strings to predefined macros Signed-off-by: Sung-hun Kim --- src/resource-optimizer/memory/dedup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resource-optimizer/memory/dedup.c b/src/resource-optimizer/memory/dedup.c index e1cf6ea..0698244 100644 --- a/src/resource-optimizer/memory/dedup.c +++ b/src/resource-optimizer/memory/dedup.c @@ -577,11 +577,11 @@ static int resourced_dedup_check_runtime_support(void *data) /* * Check whether CONFIG_LKSM is enabled in kernel. */ - if (access("/sys/kernel/mm/ksm/run", R_OK) != 0) { + if (access(DEDUP_SYSFS_KSM_RUN, R_OK) != 0) { _I("the kernel doesn't support KSM, please check kernel configuration"); return -ENOENT; } - if (access("/sys/kernel/mm/ksm/on_demand_scanning_trigger", R_OK) != 0) { + if (access(DEDUP_SYSFS_KSM_TRIGGER, R_OK) != 0) { _I("the kernel support KSM but not LKSM, please check kernel configuration"); return -ENOENT; } -- 2.7.4