android_kernel_samsung_sm8650/mm/damon
Huaisheng Ye ea215c9a10 UPSTREAM: mm/damon/core: skip apply schemes if empty
Sometimes there is no scheme in damon's context, for example just use damo
record to monitor workload's data access pattern.

If current damon context doesn't have any scheme in the list, kdamond has
no need to iterate over list of all targets and regions but do nothing.

So, skip apply schemes when ctx->schemes is empty.

Link: https://lkml.kernel.org/r/20230116062347.1148553-1-huaisheng.ye@intel.com
Signed-off-by: Huaisheng Ye <huaisheng.ye@intel.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

(cherry picked from commit 64517d6e1291b5e942b00c53674ecf33f918313f)

Bug: 300502883
Change-Id: Ic76ca90c85dbb24205b17dd914f91a8dd4cf7345
Signed-off-by: cui yangpei <cuiyangpei@xiaomi.com>
2023-12-16 01:38:42 +00:00
..
core-test.h mm/damon/core-test: test damon_set_regions 2022-10-03 14:03:06 -07:00
core.c UPSTREAM: mm/damon/core: skip apply schemes if empty 2023-12-16 01:38:42 +00:00
dbgfs-test.h mm/damon/dbgfs-test: fix is_target_id() change 2022-03-22 15:57:12 -07:00
dbgfs.c mm/damon/dbgfs: check if rm_contexts input is for a real context 2022-11-08 15:57:25 -08:00
Kconfig mm/damon/Kconfig: notify debugfs deprecation plan 2022-10-03 14:03:06 -07:00
lru_sort.c UPSTREAM: mm/damon: use kstrtobool() instead of strtobool() 2023-12-16 01:38:42 +00:00
Makefile UPSTREAM: mm/damon/modules: deduplicate init steps for DAMON context setup 2023-12-16 01:38:42 +00:00
modules-common.c UPSTREAM: mm/damon/modules: deduplicate init steps for DAMON context setup 2023-12-16 01:38:42 +00:00
modules-common.h UPSTREAM: mm/damon/modules: deduplicate init steps for DAMON context setup 2023-12-16 01:38:42 +00:00
ops-common.c mm/damon/ops-common: atomically test and clear young on ptes and pmds 2023-07-19 16:22:11 +02:00
ops-common.h mm/damon/ops-common: atomically test and clear young on ptes and pmds 2023-07-19 16:22:11 +02:00
paddr.c mm/damon/ops-common: atomically test and clear young on ptes and pmds 2023-07-19 16:22:11 +02:00
reclaim.c UPSTREAM: mm/damon: use kstrtobool() instead of strtobool() 2023-12-16 01:38:42 +00:00
sysfs-common.c UPSTREAM: mm/damon/sysfs: move unsigned long range directory to common module 2023-12-16 01:38:42 +00:00
sysfs-common.h UPSTREAM: mm/damon/sysfs-schemes: implement DAMOS-tried regions clear command 2023-12-16 01:38:42 +00:00
sysfs-schemes.c UPSTREAM: mm/damon/sysfs-schemes: implement DAMOS-tried regions clear command 2023-12-16 01:38:42 +00:00
sysfs.c UPSTREAM: mm/damon/sysfs-schemes: implement DAMOS-tried regions clear command 2023-12-16 01:38:42 +00:00
vaddr-test.h mm/damon/vaddr-test: fix memory leak in damon_do_test_apply_three_regions() 2023-10-06 14:57:03 +02:00
vaddr.c This is the 6.1.39 stable release 2023-09-02 19:41:42 +00:00