[patch] BFS 421-1: use cpu_of

From: Hillf Danton
Date: Fri Jul 06 2012 - 08:26:49 EST


CPU is available after runqueue determined.

SOB: Hillf Danton <dhillf@xxxxxxxxx>
---

--- a/kernel/sched/bfs.c Fri Jul 6 20:12:30 2012
+++ b/kernel/sched/bfs.c Fri Jul 6 20:13:00 2012
@@ -1448,7 +1448,7 @@ static void ttwu_stat(struct task_struct
struct rq *rq = this_rq();
#ifdef CONFIG_SMP
if (success)
- p->wakeup_cpu = smp_processor_id();
+ p->wakeup_cpu = cpu_of(rq);
#else
schedstat_inc(rq, ttwu_local);
#endif
--
--
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/