All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] MIPS: Fix idle VS timer enqueue
@ 2025-02-14 10:50 Marco Crivellari
  2025-02-14 10:50 ` [PATCH] " Marco Crivellari
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Crivellari @ 2025-02-14 10:50 UTC (permalink / raw)
  To: linux-mips, linux-kernel
  Cc: Thomas Bogendoerfer, Marco Crivellari, Frederic Weisbecker

This patch aims to fix idle routine while the CPU receive an interrupt,
because __r4k_wait() only checks if TIF_NEED_RESCHED is set before 
going to sleep.
The same behavior has been changed in LoongArch [1].

Code (cross) compiled successfully and I manage to test it on a VM
emulating a malta board. I ran QEMU with:

qemu-system-mips64el -M malta -m 2G -kernel vmlinux -serial stdio -drive \
file=rootfs.ext2,format=raw -append "rootwait root=/dev/sda" -cpu 5Kc

rootfs generated using buildroot (malta default configuration).

- [1] https://github.com/chenhuacai/linux/commit/a8aa673ea46c03b3f62992ffa4ffe810ac84f6e3

Marco Crivellari (1):
  MIPS: Fix idle VS timer enqueue

 arch/mips/kernel/genex.S | 36 ++++++++++++++++++++----------------
 arch/mips/kernel/idle.c  |  1 -
 2 files changed, 20 insertions(+), 17 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-02-15 14:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 10:50 [PATCH 0/1] MIPS: Fix idle VS timer enqueue Marco Crivellari
2025-02-14 10:50 ` [PATCH] " Marco Crivellari
2025-02-14 12:32   ` Frederic Weisbecker
2025-02-14 14:46   ` Huacai Chen
2025-02-14 15:57     ` Marco Crivellari
2025-02-15 14:41       ` Huacai Chen
2025-02-15  5:05   ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.