mm/damon/paddr,vaddr: register themselves to DAMON in subsys_initcall
authorSeongJae Park <sj@kernel.org>
Wed, 16 Feb 2022 04:31:42 +0000 (15:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Feb 2022 03:46:48 +0000 (14:46 +1100)
commit7cf2dd7a5509b8961d0084b0c553666a4195da64
treed8efc9c373c6ea10e6e407c9eb630257dd55436d
parent3fa25d108d6aea1dc898f0c12812a570a8820e4b
mm/damon/paddr,vaddr: register themselves to DAMON in subsys_initcall

This commit makes the monitoring operations for the physical address space
and virtual address spaces register themselves to DAMON in the
subsys_initcall step.  Later, in-kernel DAMON user code can use them via
damon_select_ops() without have to unnecessarily depend on all possible
monitoring operations implementations.

Link: https://lkml.kernel.org/r/20220215184603.1479-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/damon/paddr.c
mm/damon/vaddr.c