[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250206162922.3028861-1-marco.crivellari@suse.com>
Date: Thu, 6 Feb 2025 17:29:21 +0100
From: Marco Crivellari <marco.crivellari@...e.com>
To: loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Cc: bibo mao <maobibo@...ngson.cn>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Tiezhu Yang <yangtiezhu@...ngson.cn>,
Frederic Weisbecker <frederic@...nel.org>,
Marco Crivellari <marco.crivellari@...e.com>,
Youling Tang <tangyouling@...ngson.cn>,
Peter Zijlstra <peterz@...radead.org>,
Jiaxun Yang <jiaxun.yang@...goat.com>
Subject: [PATCH 0/1] loongson: Fix idle VS timer enqueue
This patch aim to fix issues if timers are queued because __arch_cpu_idle()
only checks if TIF_NEED_RESCHED is set before going to sleep.
Changes are described in [1], and [2] improve the patch further.
The following patch is the result of [1] and [2] combined.
Code compiled successfully, but I couldn't test the changes because of some
trouble emulating a loongarch machine; I tried to boot with and without
this patch, but a panic occurred, due likely to a wrong VM configuration
(panic occurred right after the i8042 probing).
- [1] https://lore.kernel.org/all/20230811170049.308866-5-frederic@kernel.org/#t
- [2] https://lore.kernel.org/all/06cf8750-901d-2f65-fb9e-81980688e017@loongson.cn/
Peter Zijlstra (1):
loongson: Fix idle VS timer enqueue
arch/loongarch/kernel/genex.S | 33 +++++++++++++++++++--------------
arch/loongarch/kernel/idle.c | 3 +--
arch/loongarch/kernel/reset.c | 23 ++++++++++++++---------
3 files changed, 34 insertions(+), 25 deletions(-)
--
2.48.1
Powered by blists - more mailing lists