Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/[email protected] Signed-off-by: Huaisheng Ye <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information