diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-24 18:40:37 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2013-05-20 13:45:51 -0400 |
commit | 59df94740867027cd38edfaf7f8c84b8b0903134 (patch) | |
tree | 02c686bf2c697bf0233e5b64258813bc4496fb51 /include | |
parent | e174dfaebc6932259359e605d48264d8a8b2c9b0 (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) |