summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-06-24 16:40:37 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:02 (GMT)
commit041c297ce625589b52881d376ed643f95d442f63 (patch)
treef95a6cfa135e6a56829f311c694ffe71eac41512
parentbfd75397bc488fd8a7bc3ddcc6dbd3eda233df97 (diff)
downloadlinux-fsl-qoriq-041c297ce625589b52881d376ed643f95d442f63.tar.xz
local-var.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--include/linux/percpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index c74088a..d273604 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -48,6 +48,11 @@
preempt_enable(); \
} while (0)
+#define get_local_var(var) get_cpu_var(var)
+#define put_local_var(var) put_cpu_var(var)
+#define get_local_ptr(var) get_cpu_ptr(var)
+#define put_local_ptr(var) put_cpu_ptr(var)
+
/* minimum unit size, also is the maximum supported allocation size */
#define PCPU_MIN_UNIT_SIZE PFN_ALIGN(32 << 10)