Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20220214165216.2231574-5-mark.rutland@arm.com

authored by

Mark Rutland and committed by
Peter Zijlstra
33c64734 4624a14f

+2 -1
-1
arch/Kconfig
··· 1279 1279 config HAVE_PREEMPT_DYNAMIC 1280 1280 bool 1281 1281 depends on HAVE_STATIC_CALL 1282 - depends on GENERIC_ENTRY 1283 1282 help 1284 1283 Select this if the architecture support boot time preempt setting 1285 1284 on top of static calls. It is strongly advised to support inline
+2
kernel/sched/core.c
··· 8149 8149 8150 8150 #ifdef CONFIG_PREEMPT_DYNAMIC 8151 8151 8152 + #ifdef CONFIG_GENERIC_ENTRY 8152 8153 #include <linux/entry-common.h> 8154 + #endif 8153 8155 8154 8156 /* 8155 8157 * SC:cond_resched