samples/damon/mtier: avoid starting DAMON before initialization
authorSeongJae Park <sj@kernel.org>
Tue, 9 Sep 2025 02:22:38 +0000 (19:22 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 20:05:38 +0000 (13:05 -0700)
commitc62cff40481c037307a13becbda795f7afdcfebd
treeaf65a554eaaa5651a4ec2fbdb8214a0c0bae2eab
parente6b733ca2f99e968d696c2e812c8eb8e090bf37b
samples/damon/mtier: avoid starting DAMON before initialization

Commit 964314344eab ("samples/damon/mtier: support boot time enable
setup") is somehow incompletely applying the origin patch [1].  It is
missing the part that avoids starting DAMON before module initialization.
Probably a mistake during a merge has happened.  Fix it by applying the
missed part again.

Link: https://lkml.kernel.org/r/20250909022238.2989-4-sj@kernel.org
Link: https://lore.kernel.org/20250706193207.39810-4-sj@kernel.org
Fixes: 964314344eab ("samples/damon/mtier: support boot time enable setup")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
samples/damon/mtier.c