diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-24 16:40:37 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:02 (GMT) |
commit | 041c297ce625589b52881d376ed643f95d442f63 (patch) | |
tree | f95a6cfa135e6a56829f311c694ffe71eac41512 | |
parent | bfd75397bc488fd8a7bc3ddcc6dbd3eda233df97 (diff) | |
download | linux-fsl-qoriq-041c297ce625589b52881d376ed643f95d442f63.tar.xz |
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 c74088a..d273604 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) |