]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/paddr,vaddr: register themselves to DAMON in subsys_initcall
authorSeongJae Park <sj@kernel.org>
Tue, 22 Mar 2022 21:48:52 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:12 +0000 (15:57 -0700)
commit964d1b85516e0960604d93bae40dbdbc7e6678c1
tree2171f05ecfe8d442b540f6010cb60959cb70b73c
parentda7a833b154ede4059832b8fe18554b217942958
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: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/paddr.c
mm/damon/vaddr.c