linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] powerpc, arm64: move preempt dynamic key into kernel/sched
@ 2025-07-16  9:47 Shrikanth Hegde
  2025-07-16  9:47 ` [PATCH v2 1/1] sched: preempt: Move dynamic keys " Shrikanth Hegde
  0 siblings, 1 reply; 5+ messages in thread
From: Shrikanth Hegde @ 2025-07-16  9:47 UTC (permalink / raw)
  To: mingo, peterz, tglx, maddy, will
  Cc: sshegde, mark.rutland, bigeasy, linux-kernel, linuxppc-dev

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


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/1] sched: preempt: Move dynamic keys into kernel/sched
@ 2025-07-23  7:44 Venkat
  0 siblings, 0 replies; 5+ messages in thread
From: Venkat @ 2025-07-23  7:44 UTC (permalink / raw)
  To: sshegde
  Cc: bigeasy, LKML, linuxppc-dev, maddy, mark.rutland, mingo,
	Peter Zijlstra, tglx, will




Tested this patch, by applying on top of mainline kernel. 

Dynamically changed the preemption modes, and its working as expected. Hence,

Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>

Regards,
Venkat.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-12 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16  9:47 [PATCH v2 0/1] powerpc, arm64: move preempt dynamic key into kernel/sched Shrikanth Hegde
2025-07-16  9:47 ` [PATCH v2 1/1] sched: preempt: Move dynamic keys " Shrikanth Hegde
2025-08-04  7:06   ` Venkat
2025-08-12 18:21   ` Shrikanth Hegde
  -- strict thread matches above, loose matches on Subject: below --
2025-07-23  7:44 Venkat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).