summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-06-24 16:40:37 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:18:57 (GMT)
commit8f27cf73e09803e638260c70ac0ec339c15331b3 (patch)
tree043ad0e00fe271dfaa29abf465011ad276e3360a /include/linux
parent5d9c00b689537c5e9c5e3d02eb19f7f2baf8ec86 (diff)
downloadlinux-fsl-qoriq-8f27cf73e09803e638260c70ac0ec339c15331b3.tar.xz
local-var.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-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)