From: Marco Crivellari <marco.crivellari@suse.com>
To: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: bibo mao <maobibo@loongson.cn>,
Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Tiezhu Yang <yangtiezhu@loongson.cn>,
Frederic Weisbecker <frederic@kernel.org>,
Marco Crivellari <marco.crivellari@suse.com>,
Youling Tang <tangyouling@loongson.cn>,
Peter Zijlstra <peterz@infradead.org>,
Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: [PATCH 0/1] loongson: Fix idle VS timer enqueue
Date: Thu, 6 Feb 2025 17:29:21 +0100 [thread overview]
Message-ID: <20250206162922.3028861-1-marco.crivellari@suse.com> (raw)
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
next reply other threads:[~2025-02-06 16:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 16:29 Marco Crivellari [this message]
2025-02-06 16:29 ` [PATCH] " Marco Crivellari
2025-02-07 6:50 ` bibo mao
2025-02-07 8:18 ` Huacai Chen
2025-02-07 10:17 ` Marco Crivellari
2025-02-07 11:23 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250206162922.3028861-1-marco.crivellari@suse.com \
--to=marco.crivellari@suse.com \
--cc=chenhuacai@kernel.org \
--cc=frederic@kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=kernel@xen0n.name \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maobibo@loongson.cn \
--cc=peterz@infradead.org \
--cc=tangyouling@loongson.cn \
--cc=yangtiezhu@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®