Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422737AbWATCSr (ORCPT ); Thu, 19 Jan 2006 21:18:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422740AbWATCSq (ORCPT ); Thu, 19 Jan 2006 21:18:46 -0500 Received: from c-67-174-241-67.hsd1.ca.comcast.net ([67.174.241.67]:13739 "EHLO plato.virtuousgeek.org") by vger.kernel.org with ESMTP id S1422739AbWATCSp (ORCPT ); Thu, 19 Jan 2006 21:18:45 -0500 From: Jesse Barnes To: Brent Casavant Subject: Re: [PATCH] SN2 user-MMIO CPU migration Date: Thu, 19 Jan 2006 18:18:43 -0800 User-Agent: KMail/1.9 Cc: linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, jes@sgi.com, tony.luck@intel.com References: <20060118163305.Y42462@chenjesu.americas.sgi.com> In-Reply-To: <20060118163305.Y42462@chenjesu.americas.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601191818.43157.jbarnes@virtuousgeek.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1589 Lines: 46 On Thursday, January 19, 2006 4:06 pm, Brent Casavant wrote: > #ifndef __ARCH_WANT_UNLOCKED_CTXSW > static inline int task_running(runqueue_t *rq, task_t *p) > @@ -936,6 +939,7 @@ static int migrate_task(task_t *p, int d > * it is sufficient to simply update the task's cpu field. > */ > if (!p->array && !task_running(rq, p)) { > + arch_task_migrate(p); > set_task_cpu(p, dest_cpu); > return 0; > } > @@ -1353,6 +1357,7 @@ static int try_to_wake_up(task_t *p, uns > out_set_cpu: > new_cpu = wake_idle(new_cpu, p); > if (new_cpu != cpu) { > + arch_task_migrate(p); > set_task_cpu(p, new_cpu); > task_rq_unlock(rq, &flags); > /* might preempt at this point */ > @@ -1876,6 +1881,7 @@ void pull_task(runqueue_t *src_rq, prio_ > { > dequeue_task(p, src_array); > dec_nr_running(p, src_rq); > + arch_task_migrate(p); > set_task_cpu(p, this_cpu); > inc_nr_running(p, this_rq); > enqueue_task(p, this_array); > @@ -4547,6 +4553,7 @@ static void __migrate_task(struct task_s > if (!cpu_isset(dest_cpu, p->cpus_allowed)) > goto out; > > + arch_task_migrate(p); > set_task_cpu(p, dest_cpu); > if (p->array) { > /* Maybe you could just turn the above into mmiowb() calls instead? That would cover altix, origin, and ppc as well I think. On other platforms it would be a complete no-op. Jesse - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/