Commit 33c64734 authored by Mark Rutland's avatar Mark Rutland Committed by Peter Zijlstra

sched/preempt: Decouple HAVE_PREEMPT_DYNAMIC from GENERIC_ENTRY

Now that the enabled/disabled states for the preemption functions are
declared alongside their definitions, the core PREEMPT_DYNAMIC logic is
no longer tied to GENERIC_ENTRY, and can safely be selected so long as
an architecture provides enabled/disabled states for
irqentry_exit_cond_resched().

Make it possible to select HAVE_PREEMPT_DYNAMIC without GENERIC_ENTRY.

For existing users of HAVE_PREEMPT_DYNAMIC there should be no functional
change as a result of this patch.
Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
Acked-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20220214165216.2231574-5-mark.rutland@arm.com
parent 4624a14f
...@@ -1279,7 +1279,6 @@ config HAVE_STATIC_CALL_INLINE ...@@ -1279,7 +1279,6 @@ config HAVE_STATIC_CALL_INLINE
config HAVE_PREEMPT_DYNAMIC config HAVE_PREEMPT_DYNAMIC
bool bool
depends on HAVE_STATIC_CALL depends on HAVE_STATIC_CALL
depends on GENERIC_ENTRY
help help
Select this if the architecture support boot time preempt setting Select this if the architecture support boot time preempt setting
on top of static calls. It is strongly advised to support inline on top of static calls. It is strongly advised to support inline
......
...@@ -8149,7 +8149,9 @@ EXPORT_SYMBOL(__cond_resched_rwlock_write); ...@@ -8149,7 +8149,9 @@ EXPORT_SYMBOL(__cond_resched_rwlock_write);
#ifdef CONFIG_PREEMPT_DYNAMIC #ifdef CONFIG_PREEMPT_DYNAMIC
#ifdef CONFIG_GENERIC_ENTRY
#include <linux/entry-common.h> #include <linux/entry-common.h>
#endif
/* /*
* SC:cond_resched * SC:cond_resched
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment