rseq: Avoid CPU/MM CID updates when no event pending
authorThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 08:44:31 +0000 (09:44 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:30:43 +0000 (08:30 +0100)
commit566d8015f7eef11d82cd63dc4e1f620fcfc2a394
treeb0aa6a0502895d51e30d3831bd2c692c24d77a86
parent83409986f49f17b14a675f9c598ad50d4c60191b
rseq: Avoid CPU/MM CID updates when no event pending

There is no need to update these values unconditionally if there is no
event pending.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251027084306.462964916@linutronix.de
kernel/rseq.c