diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-24 18:40:37 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-24 10:26:25 -0500 |
commit | 5a041fec371d5cfd6e408557860411d72364e427 (patch) | |
tree | 946b3eaf7f6dfa3c1b151561b5e3ab29135fbc3a /include | |
parent | 6de5249eb2431a2dc34eab99c2d20edd836475ac (diff) |
local-var.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-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) |