]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
samples/damon/mtier: use damon_initialized()
authorSeongJae Park <sj@kernel.org>
Tue, 16 Sep 2025 03:35:11 +0000 (20:35 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:39 +0000 (14:22 -0700)
commitd93871f473c57ed234d4549a602163019ea5b43f
tree4e179f423d31f0f4f64c41398fa220c3c85dadab
parent20c0ed5035fa81872a97c46d2d5beee5aab09800
samples/damon/mtier: use damon_initialized()

damon_sample_mtier is assuming DAMON is ready to use in module_init time,
and uses its own hack to see if it is the time.  Use damon_initialized(),
which is a way for seeing if DAMON is ready to be used that is more
reliable and better to maintain instead of the hack.

Link: https://lkml.kernel.org/r/20250916033511.116366-8-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/damon/mtier.c