diff options
| author | Huaisheng Ye <[email protected]> | 2023-01-16 14:23:47 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-02 22:33:22 -0800 |
| commit | 64517d6e1291b5e942b00c53674ecf33f918313f (patch) | |
| tree | 777f5e1ab43bb4ee40ea2ba95964f6625bbcfee2 /tools/perf/scripts/python/bin | |
| parent | 98001fd63d59d2f99c90db823d322de91ff7d771 (diff) | |
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]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions