[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1404151238340.27545@gentwo.org>
Date: Tue, 15 Apr 2014 12:39:14 -0500 (CDT)
From: Christoph Lameter <cl@...ux.com>
To: Tejun Heo <htejun@...il.com>
cc: linux-kernel@...r.kernel.org
Subject: percpu: Replace __get_cpu_var with this_cpu_ptr
One case of using __get_cpu_var in the get_cpu_var macro
for address calculation.
Signed-off-by: Christoph Lameter <cl@...ux.com>
Index: linux/include/linux/percpu.h
===================================================================
--- linux.orig/include/linux/percpu.h 2014-04-14 13:24:54.669364001 -0500
+++ linux/include/linux/percpu.h 2014-04-14 13:24:54.661364156 -0500
@@ -29,7 +29,7 @@
*/
#define get_cpu_var(var) (*({ \
preempt_disable(); \
- &__get_cpu_var(var); }))
+ this_cpu_ptr(&var); }))
/*
* The weird & is necessary because sparse considers (void)(var) to be
--
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