arm64: enable PREEMPT_LAZY
cover arm64: enable PREEMPT_LAZY
Hey folks,
This is a resubmission of Mark's patch [1]. I didn't end up changing anything other than fluffing up the changelog.
I ran this under an arm64 VM, added some trace_printk's and checked that sched_switch's between runnable hackbench threads would occurr in the right conditions:
o with TIF_NEED_RESCHED_LAZY set
o at the tick
o at do_notify_resume()
o with TIF_NEED_RESCHED set
[1]: https://lore.kernel.org/linux-rt-users/[email protected]/
Cheers,
Valentin
Mark Rutland (1):
arm64: enable PREEMPT_LAZY
arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 16 +++++++++------- arch/arm64/kernel/entry-common.c | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-)
--
2.43.0
PATCH 1/1 arm64: enable PREEMPT_LAZY
From: Mark Rutland <[email protected]>
For an architecture to enable CONFIG_ARCH_HAS_RESCHED_LAZY, two things are required:
1) Adding a TIF_NEED_RESCHED_LAZY flag definition
2) Checking for TIF_NEED_RESCHED_LAZY in the appropriate locations
2) is handled in a generic manner by CONFIG_GENERIC_ENTRY, which isn't (yet) implemented for arm64. However, outside of core scheduler code, TIF_NEED_RESCHED_LAZY only needs to be checked on a kernel exit, meaning:
o return/entry to userspace.
o return/entry to guest.
The return/entry to a guest is all handled by xfer_to_guest_mode_handle_work() which already does the right thing, so it can be left as-is.
arm64 doesn't use common entry's exit_to_user_mode_prepare(), so update its return to user path to check for TIF_NEED_RESCHED_LAZY and call into schedule() accordingly.
--- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 16 +++++++++------- arch/arm64/kernel/entry-common.c | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-)
arch/arm64/Kconfig +1 -0
@@ -41,6 +41,7 @@ config ARM64 select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_NONLEAF_PMD_YOUNG if ARM64_HAFT + select ARCH_HAS_PREEMPT_LAZY select ARCH_HAS_PTE_DEVMAP select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_HW_PTE_YOUNG
arch/arm64/include/asm/thread_info.h +9 -7
@@ -59,11 +59,12 @@ void arch_setup_new_exec(void);#define TIF_SIGPENDING 0/* signal pending */ #define TIF_NEED_RESCHED 1/* rescheduling necessary */ -#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ -#define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ -#define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 6/* signal notifications exist */ +#define TIF_NEED_RESCHED_LAZY 2/* Lazy rescheduling needed */ +#define TIF_NOTIFY_RESUME 3/* callback before returning to user */ +#define TIF_FOREIGN_FPSTATE 4/* CPU's FP state is not current's */ +#define TIF_UPROBE 5/* uprobe breakpoint or singlestep */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ +#define TIF_NOTIFY_SIGNAL 7/* signal notifications exist */ #define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */
@@ -85,6 +86,7 @@ void arch_setup_new_exec(void);#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) +#define _TIF_NEED_RESCHED_LAZY (1 << TIF_NEED_RESCHED_LAZY)#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)#define _TIF_FOREIGN_FPSTATE (1 << TIF_FOREIGN_FPSTATE)#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
@@ -100,10 +102,10 @@ void arch_setup_new_exec(void);#define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)#define _TIF_TSC_SIGSEGV (1 << TIF_TSC_SIGSEGV) -#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ +#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ - _TIF_NOTIFY_SIGNAL) + _TIF_NOTIFY_SIGNAL | _TIF_SIGPENDING)#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \
arch/arm64/kernel/entry-common.c +1 -1
@@ -132,7 +132,7 @@ static void do_notify_resume(struct pt_regs *regs, unsigned long thread_flags) do { local_irq_enable(); - if (thread_flags & _TIF_NEED_RESCHED) + if (thread_flags & (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY)) schedule(); if (thread_flags & _TIF_UPROBE)
Signature · 1 line
2.43.0
Quoted 20 lines · Valentin Schneider
From: Mark Rutland <[email protected]>
For an architecture to enable
CONFIG_ARCH_HAS_RESCHED_LAZY, two things are required:
1) Adding aTIF_NEED_RESCHED_LAZYflag definition
2) Checking forTIF_NEED_RESCHED_LAZYin the appropriate locations2) is handled in a generic manner by
CONFIG_GENERIC_ENTRY, which isn't (yet) implemented for arm64. However, outside of core scheduler code,TIF_NEED_RESCHED_LAZYonly needs to be checked on a kernel exit, meaning:
o return/entry to userspace.
o return/entry to guest.The return/entry to a guest is all handled by
xfer_to_guest_mode_handle_work()which already does the right thing, so it can be left as-is.arm64 doesn't use common entry's
exit_to_user_mode_prepare(), so update its return to user path to check forTIF_NEED_RESCHED_LAZYand call intoschedule()accordingly.
Quoted 7 lines
Signed-off-by Mark Rutland <[email protected]>[testdrive, _TIF_WORK_MASK fixlet and changelog.]Signed-off-by Mike Galbraith <[email protected]>[Another round of testing; changelog faff]Signed-off-by Valentin Schneider <[email protected]>
I somehow assumed it was already merged. For what it is worth, this looks like patch Mike posted in
https://lore.kernel.org/[email protected]
and tested
Sebastian
Quoted 27 lines · Valentin Schneider
From: Mark Rutland <[email protected]>
For an architecture to enable
CONFIG_ARCH_HAS_RESCHED_LAZY, two things are required:
1) Adding aTIF_NEED_RESCHED_LAZYflag definition
2) Checking forTIF_NEED_RESCHED_LAZYin the appropriate locations2) is handled in a generic manner by
CONFIG_GENERIC_ENTRY, which isn't (yet) implemented for arm64. However, outside of core scheduler code,TIF_NEED_RESCHED_LAZYonly needs to be checked on a kernel exit, meaning:
o return/entry to userspace.
o return/entry to guest.The return/entry to a guest is all handled by
xfer_to_guest_mode_handle_work()which already does the right thing, so it can be left as-is.arm64 doesn't use common entry's
exit_to_user_mode_prepare(), so update its return to user path to check forTIF_NEED_RESCHED_LAZYand call intoschedule()accordingly.Signed-off-by Mark Rutland <[email protected]>[testdrive, _TIF_WORK_MASK fixlet and changelog.]Signed-off-by Mike Galbraith <[email protected]>[Another round of testing; changelog faff]Signed-off-by Valentin Schneider <[email protected]>
Quoted 5 lines
--- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 16 +++++++++------- arch/arm64/kernel/entry-common.c | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-)
Catalin, Will, given this is small and self-contained, I reckon it makes sense to pick this up ahead of Jinjie's series to move arm64 over to the generic entry library (which is on my queue of things to review). Even if we pick up both, it'll be easier to bisect and debug issues caused by this patch alone.
The fixes/cleanups from Mike and Valentin look right to me, so FWIW:
Mark.
Quoted 71 lines
arch/arm64/Kconfig +1
-0@@ -41,6 +41,7 @@ config ARM64 select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_NONLEAF_PMD_YOUNG if ARM64_HAFT + select ARCH_HAS_PREEMPT_LAZY select ARCH_HAS_PTE_DEVMAP select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_HW_PTE_YOUNGarch/arm64/include/asm/thread_info.h +9
-7@@ -59,11 +59,12 @@ void arch_setup_new_exec(void);#define TIF_SIGPENDING 0/* signal pending */ #define TIF_NEED_RESCHED 1/* rescheduling necessary */ -#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ -#define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ -#define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 6/* signal notifications exist */ +#define TIF_NEED_RESCHED_LAZY 2/* Lazy rescheduling needed */ +#define TIF_NOTIFY_RESUME 3/* callback before returning to user */ +#define TIF_FOREIGN_FPSTATE 4/* CPU's FP state is not current's */ +#define TIF_UPROBE 5/* uprobe breakpoint or singlestep */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ +#define TIF_NOTIFY_SIGNAL 7/* signal notifications exist */ #define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */ @@ -85,6 +86,7 @@ void arch_setup_new_exec(void);#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) +#define _TIF_NEED_RESCHED_LAZY (1 << TIF_NEED_RESCHED_LAZY)#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)#define _TIF_FOREIGN_FPSTATE (1 << TIF_FOREIGN_FPSTATE)#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)@@ -100,10 +102,10 @@ void arch_setup_new_exec(void);#define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)#define _TIF_TSC_SIGSEGV (1 << TIF_TSC_SIGSEGV) -#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ +#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ - _TIF_NOTIFY_SIGNAL) + _TIF_NOTIFY_SIGNAL | _TIF_SIGPENDING)#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \arch/arm64/kernel/entry-common.c +1
-1@@ -132,7 +132,7 @@ static void do_notify_resume(struct pt_regs *regs, unsigned long thread_flags) do { local_irq_enable(); - if (thread_flags & _TIF_NEED_RESCHED) + if (thread_flags & (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY)) schedule(); if (thread_flags & _TIF_UPROBE)Signature · 1 line
2.43.0
Quoted 40 lines · On Wed, 5 Mar 2025 12:15:35 +0000 Mark Rutland <[email protected]> wrote:
Quoted 27 lines · Valentin Schneider
From: Mark Rutland <[email protected]>
For an architecture to enable
CONFIG_ARCH_HAS_RESCHED_LAZY, two things are required:
1) Adding aTIF_NEED_RESCHED_LAZYflag definition
2) Checking forTIF_NEED_RESCHED_LAZYin the appropriate locations2) is handled in a generic manner by
CONFIG_GENERIC_ENTRY, which isn't (yet) implemented for arm64. However, outside of core scheduler code,TIF_NEED_RESCHED_LAZYonly needs to be checked on a kernel exit, meaning:
o return/entry to userspace.
o return/entry to guest.The return/entry to a guest is all handled by
xfer_to_guest_mode_handle_work()which already does the right thing, so it can be left as-is.arm64 doesn't use common entry's
exit_to_user_mode_prepare(), so update its return to user path to check forTIF_NEED_RESCHED_LAZYand call intoschedule()accordingly.Signed-off-by Mark Rutland <[email protected]>[testdrive, _TIF_WORK_MASK fixlet and changelog.]Signed-off-by Mike Galbraith <[email protected]>[Another round of testing; changelog faff]Signed-off-by Valentin Schneider <[email protected]>Quoted 5 lines
--- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 16 +++++++++------- arch/arm64/kernel/entry-common.c | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-)Catalin, Will, given this is small and self-contained, I reckon it makes sense to pick this up ahead of Jinjie's series to move arm64 over to the generic entry library (which is on my queue of things to review). Even if we pick up both, it'll be easier to bisect and debug issues caused by this patch alone.
Quoted 3 lines
The fixes/cleanups from Mike and Valentin look right to me, so FWIW:
Acked-by Mark Rutland <[email protected]>
Thank you, all. Much appreciated.
Petr T
Quoted 5 lines · Mark Rutland
Catalin, Will, given this is small and self-contained, I reckon it makes sense to pick this up ahead of Jinjie's series to move arm64 over to the generic entry library (which is on my queue of things to review). Even if we pick up both, it'll be easier to bisect and debug issues caused by this patch alone.
Any updates here? I know it is the merge window but I don't know if upstream considers this or wants to sit on it until the generic entry gets in.
In the meantime I stuff it into my RT tree so it does not get lost.
Quoted 1 line
Mark.
Sebastian
Will Deacon
maintainerQuoted 11 lines · Sebastian Andrzej Siewior
Quoted 5 lines · Mark Rutland
Catalin, Will, given this is small and self-contained, I reckon it makes sense to pick this up ahead of Jinjie's series to move arm64 over to the generic entry library (which is on my queue of things to review). Even if we pick up both, it'll be easier to bisect and debug issues caused by this patch alone.
Any updates here? I know it is the merge window but I don't know if upstream considers this or wants to sit on it until the generic entry gets in.
In the meantime I stuff it into my RT tree so it does not get lost.
Sorry for the delay; I'll pick this up in the arm64 tree today.
Will
Quoted 20 lines · Valentin Schneider
From: Mark Rutland <[email protected]>
For an architecture to enable
CONFIG_ARCH_HAS_RESCHED_LAZY, two things are required:
1) Adding aTIF_NEED_RESCHED_LAZYflag definition
2) Checking forTIF_NEED_RESCHED_LAZYin the appropriate locations2) is handled in a generic manner by
CONFIG_GENERIC_ENTRY, which isn't (yet) implemented for arm64. However, outside of core scheduler code,TIF_NEED_RESCHED_LAZYonly needs to be checked on a kernel exit, meaning:
o return/entry to userspace.
o return/entry to guest.The return/entry to a guest is all handled by
xfer_to_guest_mode_handle_work()which already does the right thing, so it can be left as-is.arm64 doesn't use common entry's
exit_to_user_mode_prepare(), so update its return to user path to check forTIF_NEED_RESCHED_LAZYand call intoschedule()accordingly.
Quoted 7 lines
Signed-off-by Mark Rutland <[email protected]>[testdrive, _TIF_WORK_MASK fixlet and changelog.]Signed-off-by Mike Galbraith <[email protected]>[Another round of testing; changelog faff]Signed-off-by Valentin Schneider <[email protected]>
Quoted 20 lines · Valentin Schneider
From: Mark Rutland <[email protected]>
For an architecture to enable
CONFIG_ARCH_HAS_RESCHED_LAZY, two things are required:
1) Adding aTIF_NEED_RESCHED_LAZYflag definition
2) Checking forTIF_NEED_RESCHED_LAZYin the appropriate locations2) is handled in a generic manner by
CONFIG_GENERIC_ENTRY, which isn't (yet) implemented for arm64. However, outside of core scheduler code,TIF_NEED_RESCHED_LAZYonly needs to be checked on a kernel exit, meaning:
o return/entry to userspace.
o return/entry to guest.The return/entry to a guest is all handled by
xfer_to_guest_mode_handle_work()which already does the right thing, so it can be left as-is.arm64 doesn't use common entry's
exit_to_user_mode_prepare(), so update its return to user path to check forTIF_NEED_RESCHED_LAZYand call intoschedule()accordingly.
Quoted 9 lines
Signed-off-by Mark Rutland <[email protected]>[testdrive, _TIF_WORK_MASK fixlet and changelog.]Signed-off-by Mike Galbraith <[email protected]>[Another round of testing; changelog faff]Signed-off-by Valentin Schneider <[email protected]>Acked-by Mark Rutland <[email protected]>Reviewed-by Thomas Gleixner <[email protected]>
Nice! This gets rid of the .config complaints that you otherwise get when running the rcutorture TREE07 scenario on arm64:
Quoted 74 lines
--- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 16 +++++++++------- arch/arm64/kernel/entry-common.c | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-)arch/arm64/Kconfig +1
-0@@ -41,6 +41,7 @@ config ARM64 select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_NONLEAF_PMD_YOUNG if ARM64_HAFT + select ARCH_HAS_PREEMPT_LAZY select ARCH_HAS_PTE_DEVMAP select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_HW_PTE_YOUNGarch/arm64/include/asm/thread_info.h +9
-7@@ -59,11 +59,12 @@ void arch_setup_new_exec(void);#define TIF_SIGPENDING 0/* signal pending */ #define TIF_NEED_RESCHED 1/* rescheduling necessary */ -#define TIF_NOTIFY_RESUME 2/* callback before returning to user */ -#define TIF_FOREIGN_FPSTATE 3/* CPU's FP state is not current's */ -#define TIF_UPROBE 4/* uprobe breakpoint or singlestep */ -#define TIF_MTE_ASYNC_FAULT 5/* MTE Asynchronous Tag Check Fault */ -#define TIF_NOTIFY_SIGNAL 6/* signal notifications exist */ +#define TIF_NEED_RESCHED_LAZY 2/* Lazy rescheduling needed */ +#define TIF_NOTIFY_RESUME 3/* callback before returning to user */ +#define TIF_FOREIGN_FPSTATE 4/* CPU's FP state is not current's */ +#define TIF_UPROBE 5/* uprobe breakpoint or singlestep */ +#define TIF_MTE_ASYNC_FAULT 6/* MTE Asynchronous Tag Check Fault */ +#define TIF_NOTIFY_SIGNAL 7/* signal notifications exist */ #define TIF_SYSCALL_TRACE 8/* syscall trace active */ #define TIF_SYSCALL_AUDIT 9/* syscall auditing */ #define TIF_SYSCALL_TRACEPOINT 10/* syscall tracepoint for ftrace */ @@ -85,6 +86,7 @@ void arch_setup_new_exec(void);#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) +#define _TIF_NEED_RESCHED_LAZY (1 << TIF_NEED_RESCHED_LAZY)#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)#define _TIF_FOREIGN_FPSTATE (1 << TIF_FOREIGN_FPSTATE)#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)@@ -100,10 +102,10 @@ void arch_setup_new_exec(void);#define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)#define _TIF_TSC_SIGSEGV (1 << TIF_TSC_SIGSEGV) -#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \ +#define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY | \ _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \ _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \ - _TIF_NOTIFY_SIGNAL) + _TIF_NOTIFY_SIGNAL | _TIF_SIGPENDING)#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \ _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \arch/arm64/kernel/entry-common.c +1
-1@@ -132,7 +132,7 @@ static void do_notify_resume(struct pt_regs *regs, unsigned long thread_flags) do { local_irq_enable(); - if (thread_flags & _TIF_NEED_RESCHED) + if (thread_flags & (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY)) schedule(); if (thread_flags & _TIF_UPROBE)
Quoted 13 lines · On Wed, Mar 05, 2025 at 11:49:24AM +0100 Valentin Schneider wrote:
Hey folks,
This is a resubmission of Mark's patch [1]. I didn't end up changing anything other than fluffing up the changelog.
I ran this under an arm64 VM, added some trace_printk's and checked that sched_switch's between runnable hackbench threads would occurr in the right conditions:
o withTIF_NEED_RESCHED_LAZYset
o at the tick
o atdo_notify_resume()
o withTIF_NEED_RESCHEDset
Quoted 2 lines
[1]: https://lore.kernel.org/linux-rt-users/[email protected]/
Thanks! I was looking for this the other day :)
Cheers,
Phil
Quoted 14 lines
Cheers,
ValentinMark Rutland (1):
arm64: enablePREEMPT_LAZYarch/arm64/Kconfig | 1 + arch/arm64/include/asm/thread_info.h | 16 +++++++++------- arch/arm64/kernel/entry-common.c | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-)--
2.43.0
Quoted 13 lines · Valentin Schneider
Hey folks,
This is a resubmission of Mark's patch [1]. I didn't end up changing anything other than fluffing up the changelog.
I ran this under an arm64 VM, added some trace_printk's and checked that sched_switch's between runnable hackbench threads would occurr in the right conditions:
o withTIF_NEED_RESCHED_LAZYset
o at the tick
o atdo_notify_resume()
o withTIF_NEED_RESCHEDset
Quoted 1 line
[...]
Applied to arm64 (for-next/entry), thanks!
[1/1] arm64: enable PREEMPT_LAZY
https://git.kernel.org/arm64/c/c8597e2dd8b6
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev
Quoted 14 lines · On Tue, 29 Apr 2025 21:27:52 +0100 Will Deacon <[email protected]> wrote:
Quoted 13 lines · Valentin Schneider
Hey folks,
This is a resubmission of Mark's patch [1]. I didn't end up changing anything other than fluffing up the changelog.
I ran this under an arm64 VM, added some trace_printk's and checked that sched_switch's between runnable hackbench threads would occurr in the right conditions:
o withTIF_NEED_RESCHED_LAZYset
o at the tick
o atdo_notify_resume()
o withTIF_NEED_RESCHEDset
Quoted 6 lines
Quoted 1 line
[...]
Applied to arm64 (for-next/entry), thanks!
[1/1] arm64: enable
PREEMPT_LAZYhttps://git.kernel.org/arm64/c/c8597e2dd8b6
Great news. Thank you!
Petr T