2012-06-17 19:52:06 +00:00
|
|
|
From 0406500ace84f79049a055d56671ad74fdd39f0e Mon Sep 17 00:00:00 2001
|
2011-11-20 00:01:55 +00:00
|
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
Date: Fri, 24 Jun 2011 18:40:37 +0200
|
2012-06-17 19:52:06 +00:00
|
|
|
Subject: [087/254] local-var.patch
|
2011-11-20 00:01:55 +00:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
|
|
---
|
|
|
|
include/linux/percpu.h | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
2012-06-17 19:52:06 +00:00
|
|
|
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
|
|
|
|
index 21638ae..3d13ce0 100644
|
|
|
|
--- a/include/linux/percpu.h
|
|
|
|
+++ b/include/linux/percpu.h
|
2011-11-20 00:01:55 +00:00
|
|
|
@@ -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)
|
|
|
|
|