Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422751Ab2JaLWb (ORCPT ); Wed, 31 Oct 2012 07:22:31 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:59813 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935399Ab2JaLW1 (ORCPT ); Wed, 31 Oct 2012 07:22:27 -0400 Message-ID: <509109ED.7060900@gmail.com> Date: Wed, 31 Oct 2012 19:22:21 +0800 From: Shan Wei User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: venkat.x.venkatsubra@oracle.com, David Miller , rds-devel@oss.oracle.com, NetDev , Kernel-Maillist , cl@linux-foundation.org Subject: [PATCH 2/9] net: rds: use this_cpu_ptr per-cpu helper Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 836 Lines: 29 From: Shan Wei Signed-off-by: Shan Wei --- net/rds/ib_recv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 8d19491..a4a5064 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -423,7 +423,7 @@ static void rds_ib_recv_cache_put(struct list_head *new_item, local_irq_save(flags); - chp = per_cpu_ptr(cache->percpu, smp_processor_id()); + chp = this_cpu_ptr(cache->percpu); if (!chp->first) INIT_LIST_HEAD(new_item); else /* put on front */ -- 1.7.1 -- 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/