[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250716094745.2232041-1-sshegde@linux.ibm.com>
Date: Wed, 16 Jul 2025 15:17:44 +0530
From: Shrikanth Hegde <sshegde@...ux.ibm.com>
To: mingo@...hat.com, peterz@...radead.org, tglx@...utronix.de,
maddy@...ux.ibm.com, will@...nel.org
Cc: sshegde@...ux.ibm.com, mark.rutland@....com, bigeasy@...utronix.de,
linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org
Subject: [PATCH v2 0/1] powerpc, arm64: move preempt dynamic key into kernel/sched
Current usage of preempt dynamic key is not specific to architecture and
can be moved into sched/core instead. Most of the code around it looks
similar. (same code for powerpc, arm64).
Since preemption is more associated with scheduler rather than
entry/exit, it is probably better it should be moved.
This is tested on powerVM PREEMPT_DYNAMIC=y/n and on arm64 by Mark
v1->v2:
- Rebase to 6.16-rc6
- Collected the tags
Ingo, Peter,
Can this go via tip sched tree?
Both arm64, powerpc have acked the changes and been tested.
Shrikanth Hegde (1):
sched: preempt: Move dynamic keys into kernel/sched
arch/arm64/include/asm/preempt.h | 1 -
arch/arm64/kernel/entry-common.c | 8 --------
arch/powerpc/include/asm/preempt.h | 16 ----------------
arch/powerpc/kernel/interrupt.c | 4 ----
include/linux/irq-entry-common.h | 1 -
include/linux/sched.h | 8 ++++++++
kernel/entry/common.c | 1 -
kernel/sched/core.c | 4 ++++
8 files changed, 12 insertions(+), 31 deletions(-)
delete mode 100644 arch/powerpc/include/asm/preempt.h
--
2.43.0
Powered by blists - more mailing lists