x86/mm: Use mm_alloc() in poking_init()

Instead of duplicating init_mm, allocate a fresh mm. The advantage is
that mm_alloc() has much simpler dependencies. Additionally it makes
more conceptual sense, init_mm has no (and must not have) user state
to duplicate.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221025201057.816175235@infradead.org
This commit is contained in:
Peter Zijlstra 2022-10-25 21:38:21 +02:00 • committed by Dave Hansen
commit 3f4c8211d9
3 changed files with 1 additions and 7 deletions