sched/core: Move preempt_model_*() helpers from sched.h to preempt.h
authorSean Christopherson <seanjc@google.com>
Tue, 28 May 2024 00:34:47 +0000 (17:34 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 5 Jun 2024 14:52:36 +0000 (16:52 +0200)
commitf0dc887f21d18791037c0166f652c67da761f16f
tree5e6d4af083980c9593e6b8f7d7a5ea8507faf28d
parentf90cc919f9e5cbfcd0b952290c57ef1317f4e91e
sched/core: Move preempt_model_*() helpers from sched.h to preempt.h

Move the declarations and inlined implementations of the preempt_model_*()
helpers to preempt.h so that they can be referenced in spinlock.h without
creating a potential circular dependency between spinlock.h and sched.h.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ankur Arora <ankur.a.arora@oracle.com>
Link: https://lkml.kernel.org/r/20240528003521.979836-2-ankur.a.arora@oracle.com
include/linux/preempt.h
include/linux/sched.h