diff options
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/percpu.h | 2 | ||||
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h index 4b8d31cda1a0..b0e63c672ebd 100644 --- a/include/asm-generic/percpu.h +++ b/include/asm-generic/percpu.h | |||
@@ -32,6 +32,8 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
32 | */ | 32 | */ |
33 | #ifndef __my_cpu_offset | 33 | #ifndef __my_cpu_offset |
34 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | 34 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) |
35 | #endif | ||
36 | #ifdef CONFIG_DEBUG_PREEMPT | ||
35 | #define my_cpu_offset per_cpu_offset(smp_processor_id()) | 37 | #define my_cpu_offset per_cpu_offset(smp_processor_id()) |
36 | #else | 38 | #else |
37 | #define my_cpu_offset __my_cpu_offset | 39 | #define my_cpu_offset __my_cpu_offset |
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index f784d2f34149..f054778e916c 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -238,6 +238,9 @@ | |||
238 | *(.kprobes.text) \ | 238 | *(.kprobes.text) \ |
239 | VMLINUX_SYMBOL(__kprobes_text_end) = .; | 239 | VMLINUX_SYMBOL(__kprobes_text_end) = .; |
240 | 240 | ||
241 | /* Section used for early init (in .S files) */ | ||
242 | #define HEAD_TEXT *(.head.text) | ||
243 | |||
241 | /* init and exit section handling */ | 244 | /* init and exit section handling */ |
242 | #define INIT_DATA \ | 245 | #define INIT_DATA \ |
243 | *(.init.data) \ | 246 | *(.init.data) \ |