[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0000013ac23b7ba3-d0a82d30-2929-4cd1-bdca-1b008ee9bd3d-000000@email.amazonses.com>
Date: Fri, 2 Nov 2012 17:46:49 +0000
From: Christoph Lameter <cl@...ux.com>
To: Shan Wei <shanwei88@...il.com>
cc: dipankar@...ibm.com, paulmck@...ux.vnet.ibm.com,
Kernel-Maillist <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of
per_cpu_ptr(p, raw_smp_processor_id())
On Sat, 3 Nov 2012, Shan Wei wrote:
>
> /* Funnel through hierarchy to reduce memory contention. */
> - rnp = per_cpu_ptr(rsp->rda, raw_smp_processor_id())->mynode;
> + rnp = __this_cpu_read(rsp->rda->mynode);
> for (; rnp != NULL; rnp = rnp->parent) {
Reviewed-by: Christoph Lameter <cl@...ux.com>
--
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