diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-24 18:40:37 +0200 |
|---|---|---|
| committer | Clark Williams <williams@redhat.com> | 2012-02-15 10:32:41 -0600 |
| commit | 77eceb280a3b6336fa74d3a363801f67e0a6fddc (patch) | |
| tree | faae0f178091a9001b18506a58eaa144b96fe59e | |
| parent | 6e9a58f0d2f87208b3c665ed13d0e7788e4f0f92 (diff) | |
local-var.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
| -rw-r--r-- | include/linux/percpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 9ca008f0c542..3941ea401f3d 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) |
