summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-hun Kim <sfoon.kim@samsung.com>2024-07-08 14:06:12 +0900
committerSung-hun Kim <sfoon.kim@samsung.com>2024-07-08 14:06:12 +0900
commitf7db9130dc164cb2884e9dc08d822ddc5fe322e1 (patch)
treeeaf06faa480e05e534a441cdad9c2249abad3c9c
parentff32bff98de91b790593ea25eb026e169d76e239 (diff)
downloadresourced-sandbox/sebuns2/revise_dedup_module.tar.gz
resourced-sandbox/sebuns2/revise_dedup_module.tar.bz2
resourced-sandbox/sebuns2/revise_dedup_module.zip
memory: Change path strings to predefined macrossandbox/sebuns2/revise_dedup_module
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
-rw-r--r--src/resource-optimizer/memory/dedup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resource-optimizer/memory/dedup.c b/src/resource-optimizer/memory/dedup.c
index e1cf6ea3..06982441 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;
}