diff options
author | 2022-03-22 14:48:37 -0700 | |
---|---|---|
committer | 2022-03-22 15:57:12 -0700 | |
commit | 436428255d5981e49ff015fc8e398ecf2ba10c24 (patch) | |
tree | d1cf88d248ba7cc1c88b6e4762e917fb24e0ad4e /include/linux/damon.h | |
parent | Docs/admin-guide/mm/damon/usage: update for changed initail_regions file input (diff) | |
download | linux-436428255d5981e49ff015fc8e398ecf2ba10c24.tar.gz linux-436428255d5981e49ff015fc8e398ecf2ba10c24.tar.bz2 linux-436428255d5981e49ff015fc8e398ecf2ba10c24.zip |
mm/damon/core: move damon_set_targets() into dbgfs
damon_set_targets() function is defined in the core for general use cases,
but called from only dbgfs. Also, because the function is for general use
cases, dbgfs does additional handling of pid type target id case. To make
the situation simpler, this commit moves the function into dbgfs and makes
it to do the pid type case handling on its own.
Link: https://lkml.kernel.org/r/20211230100723.2238-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/damon.h')
-rw-r--r-- | include/linux/damon.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/damon.h b/include/linux/damon.h index 5e1e3a128b77..bd021af5db3d 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -484,8 +484,6 @@ unsigned int damon_nr_regions(struct damon_target *t); struct damon_ctx *damon_new_ctx(void); void damon_destroy_ctx(struct damon_ctx *ctx); -int damon_set_targets(struct damon_ctx *ctx, - unsigned long *ids, ssize_t nr_ids); int damon_set_attrs(struct damon_ctx *ctx, unsigned long sample_int, unsigned long aggr_int, unsigned long primitive_upd_int, unsigned long min_nr_reg, unsigned long max_nr_reg); |