summaryrefslogtreecommitdiffstats
path: root/patches/0087-local-var.patch.patch
blob: f3b3f635195c5b64bf37a36da9441f9d2c046be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 00b4f7c358fbf91694e596151d4061db643e164a Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@linutronix.de>
Date: Fri, 24 Jun 2011 18:40:37 +0200
Subject: [PATCH 087/271] local-var.patch

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 include/linux/percpu.h |    5 +++++
 1 file changed, 5 insertions(+)

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
@@ -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)
 
-- 
1.7.10.4