Skip to contentSkip to conversation

kernel: timer: use set_current_state macro

PATCH New Xu Wang 1 participant 1 message Jul 9, 2020 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 kernel: timer: use set_current_state macro

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

---
 kernel/time/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/timer.c +1 -1
index 398e6eadb861..2bf78ecffebe 100644
@@ -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;
 		}
 	}
Signature · 1 line
2.17.1