[patch 1/4] BFS 420: fix ttwu_post_activation

From: Hillf Danton
Date: Fri May 25 2012 - 09:32:56 EST


If not activated successfully, no need to change task state.

--- a/kernel/sched/bfs.c Mon May 14 20:50:38 2012
+++ b/kernel/sched/bfs.c Fri May 25 20:28:00 2012
@@ -1534,6 +1534,8 @@ static inline void ttwu_post_activation(
bool success)
{
trace_sched_wakeup(p, success);
+ if (!success)
+ return;
p->state = TASK_RUNNING;

/*
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/