]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
samples/damon/wsse: use damon_initialized()
authorSeongJae Park <sj@kernel.org>
Tue, 16 Sep 2025 03:35:09 +0000 (20:35 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:38 +0000 (14:22 -0700)
commit1f70367f7b6720ca0d3280b202317aa9d0167066
treea2614d74627d204370d657ba074d339e9a616533
parentc4a8e662c839ac0003e4781aa324cb2d68ed9cb1
samples/damon/wsse: use damon_initialized()

damon_sample_wsse 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-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/damon/wsse.c