[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBCe7VoW9yeV9eBfA0J-SAvdRcM=YG3ZpPybu53Ecaqyvw@mail.gmail.com>
Date: Fri, 6 Jul 2012 20:26:53 +0800
From: Hillf Danton <dhillf@...il.com>
To: LKML <linux-kernel@...r.kernel.org>,
Hillf Danton <dhillf@...il.com>
Subject: [patch] BFS 421-1: use cpu_of
CPU is available after runqueue determined.
SOB: Hillf Danton <dhillf@...il.com>
---
--- 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists