]> Gentwo Git Trees - linux/.git/commit
samples/damon/prcl: use damon_initialized()
authorSeongJae Park <sj@kernel.org>
Tue, 16 Sep 2025 03:35:10 +0000 (20:35 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:38 +0000 (14:22 -0700)
commit20c0ed5035fa81872a97c46d2d5beee5aab09800
treecb3f78d7dbdea32cae079e50677b0641efb217f9
parent1f70367f7b6720ca0d3280b202317aa9d0167066
samples/damon/prcl: use damon_initialized()

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