diff options
Diffstat (limited to 'include/asm-generic/percpu.h')
-rw-r--r-- | include/asm-generic/percpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h index c0caf433a7d7..c74521157461 100644 --- a/include/asm-generic/percpu.h +++ b/include/asm-generic/percpu.h | |||
@@ -14,6 +14,7 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
14 | /* var is in discarded region: offset to particular copy we want */ | 14 | /* var is in discarded region: offset to particular copy we want */ |
15 | #define per_cpu(var, cpu) (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu])) | 15 | #define per_cpu(var, cpu) (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu])) |
16 | #define __get_cpu_var(var) per_cpu(var, smp_processor_id()) | 16 | #define __get_cpu_var(var) per_cpu(var, smp_processor_id()) |
17 | #define __raw_get_cpu_var(var) per_cpu(var, raw_smp_processor_id()) | ||
17 | 18 | ||
18 | /* A macro to avoid #include hell... */ | 19 | /* A macro to avoid #include hell... */ |
19 | #define percpu_modcopy(pcpudst, src, size) \ | 20 | #define percpu_modcopy(pcpudst, src, size) \ |
@@ -30,6 +31,7 @@ do { \ | |||
30 | 31 | ||
31 | #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu__##var)) | 32 | #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu__##var)) |
32 | #define __get_cpu_var(var) per_cpu__##var | 33 | #define __get_cpu_var(var) per_cpu__##var |
34 | #define __raw_get_cpu_var(var) per_cpu__##var | ||
33 | 35 | ||
34 | #endif /* SMP */ | 36 | #endif /* SMP */ |
35 | 37 | ||