summaryrefslogtreecommitdiff
path: root/include/linux/percpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r--include/linux/percpu.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index f05adf5..c74088a 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -48,31 +48,6 @@
preempt_enable(); \
} while (0)
-#ifndef CONFIG_PREEMPT_RT_FULL
-# 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)
-#else
-# define get_local_var(var) (*({ \
- migrate_disable(); \
- &__get_cpu_var(var); }))
-
-# define put_local_var(var) do { \
- (void)&(var); \
- migrate_enable(); \
-} while (0)
-
-# define get_local_ptr(var) ({ \
- migrate_disable(); \
- this_cpu_ptr(var); })
-
-# define put_local_ptr(var) do { \
- (void)(var); \
- migrate_enable(); \
-} while (0)
-#endif
-
/* minimum unit size, also is the maximum supported allocation size */
#define PCPU_MIN_UNIT_SIZE PFN_ALIGN(32 << 10)