All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: timer: use set_current_state macro
@ 2020-07-09  3:01 Xu Wang
  0 siblings, 0 replies; only message in thread
From: Xu Wang @ 2020-07-09  3:01 UTC (permalink / raw)
  To: tglx, john.stultz, sboyd; +Cc: linux-kernel, Xu Wang

Use set_current_state macro instead of current->state = TASK_RUNNING.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
 kernel/time/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 398e6eadb861..2bf78ecffebe 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1884,7 +1884,7 @@ signed long __sched schedule_timeout(signed long timeout)
 			printk(KERN_ERR "schedule_timeout: wrong timeout "
 				"value %lx\n", timeout);
 			dump_stack();
-			current->state = TASK_RUNNING;
+			__set_current_state(TASK_RUNNING);
 			goto out;
 		}
 	}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-09  3:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09  3:01 [PATCH] kernel: timer: use set_current_state macro Xu Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.