[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <aRxP3YcwscrP1BU_@stanley.mountain>
Date: Tue, 18 Nov 2025 13:52:13 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>,
Ingo Molnar <mingo@...nel.org>,
Simon Schuster <schuster.simon@...mens-energy.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [PATCH] rseq: Delete duplicate if statement in
rseq_virt_userspace_exit()
This if statement is indented weirdly. It's a duplicate and doesn't
affect runtime (beyond wasting a little time). Delete it.
Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
---
This was introduced in commit 32034df66b5f ("rseq: Switch to TIF_RSEQ if
supported") but it doesn't cause a bug, so there is no Fixes tag.
include/linux/rseq.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/rseq.h b/include/linux/rseq.h
index b5e4803c4ebe..bf8a6bf315f3 100644
--- a/include/linux/rseq.h
+++ b/include/linux/rseq.h
@@ -126,7 +126,6 @@ static inline void rseq_force_update(void)
*/
static inline void rseq_virt_userspace_exit(void)
{
- if (current->rseq.event.sched_switch)
/*
* The generic optimization for deferring RSEQ updates until the next
* exit relies on having a dedicated TIF_RSEQ.
--
2.51.0
Powered by blists - more mailing lists