public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hrtimer.c : Remove redundant thread state settings
@ 2024-01-10 14:13 Lizhe
  2024-01-11 16:44 ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: Lizhe @ 2024-01-10 14:13 UTC (permalink / raw)
  To: tglx, ilpo.jarvinen; +Cc: linux-kernel, Lizhe

After a thread is awakened, its state is already task_running

Signed-off-by: Lizhe <sensor1010@163.com>
---
 kernel/time/hrtimer.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index 760793998cdd..b123e9f4401a 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -2310,8 +2310,6 @@ schedule_hrtimeout_range_clock(ktime_t *expires, u64 delta,
 	hrtimer_cancel(&t.timer);
 	destroy_hrtimer_on_stack(&t.timer);
 
-	__set_current_state(TASK_RUNNING);
-
 	return !t.task ? 0 : -EINTR;
 }
 EXPORT_SYMBOL_GPL(schedule_hrtimeout_range_clock);
-- 
2.25.1


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

end of thread, other threads:[~2024-01-12  5:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10 14:13 [PATCH] hrtimer.c : Remove redundant thread state settings Lizhe
2024-01-11 16:44 ` Thomas Gleixner
2024-01-12  5:03   ` lizhe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox