Thread (5 messages) 5 messages, 3 authors, 2017-01-03

[RFC PATCH] sched: Remove set_task_state()

From: peterz@infradead.org (Peter Zijlstra)
Date: 2017-01-03 09:25:20
Also in: lkml

On Fri, Dec 30, 2016 at 10:17:53AM -0800, Davidlohr Bueso wrote:
-			set_task_state(current, TASK_RUNNING);
+			set_current_state(TASK_RUNNING);
Obviously good.
-		set_task_state(tsk, TASK_UNINTERRUPTIBLE);
+		set_current_state(TASK_UNINTERRUPTIBLE);
Not so much..


So while I fully support this move, should we not first clean up the
code and also remove all the local 'tsk = current' variables such that
all replacements end up being obvious?

In any case, would be good to hear from arm64 folks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help