diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/kprobes.c | 1 | ||||
| -rw-r--r-- | kernel/smp.c | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index b7df302a0204..c4b43430d393 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
| @@ -93,6 +93,7 @@ static struct kprobe_blackpoint kprobe_blacklist[] = { | |||
| 93 | {"native_get_debugreg",}, | 93 | {"native_get_debugreg",}, |
| 94 | {"irq_entries_start",}, | 94 | {"irq_entries_start",}, |
| 95 | {"common_interrupt",}, | 95 | {"common_interrupt",}, |
| 96 | {"mcount",}, /* mcount can be called from everywhere */ | ||
| 96 | {NULL} /* Terminator */ | 97 | {NULL} /* Terminator */ |
| 97 | }; | 98 | }; |
| 98 | 99 | ||
diff --git a/kernel/smp.c b/kernel/smp.c index f10408422444..9867b6bfefce 100644 --- a/kernel/smp.c +++ b/kernel/smp.c | |||
| @@ -12,8 +12,6 @@ | |||
| 12 | #include <linux/smp.h> | 12 | #include <linux/smp.h> |
| 13 | #include <linux/cpu.h> | 13 | #include <linux/cpu.h> |
| 14 | 14 | ||
| 15 | static DEFINE_PER_CPU(struct call_single_queue, call_single_queue); | ||
| 16 | |||
| 17 | static struct { | 15 | static struct { |
| 18 | struct list_head queue; | 16 | struct list_head queue; |
| 19 | raw_spinlock_t lock; | 17 | raw_spinlock_t lock; |
| @@ -33,12 +31,14 @@ struct call_function_data { | |||
| 33 | cpumask_var_t cpumask; | 31 | cpumask_var_t cpumask; |
| 34 | }; | 32 | }; |
| 35 | 33 | ||
| 34 | static DEFINE_PER_CPU_SHARED_ALIGNED(struct call_function_data, cfd_data); | ||
| 35 | |||
| 36 | struct call_single_queue { | 36 | struct call_single_queue { |
| 37 | struct list_head list; | 37 | struct list_head list; |
| 38 | raw_spinlock_t lock; | 38 | raw_spinlock_t lock; |
| 39 | }; | 39 | }; |
| 40 | 40 | ||
| 41 | static DEFINE_PER_CPU(struct call_function_data, cfd_data); | 41 | static DEFINE_PER_CPU_SHARED_ALIGNED(struct call_single_queue, call_single_queue); |
| 42 | 42 | ||
| 43 | static int | 43 | static int |
| 44 | hotplug_cfd(struct notifier_block *nfb, unsigned long action, void *hcpu) | 44 | hotplug_cfd(struct notifier_block *nfb, unsigned long action, void *hcpu) |
| @@ -256,7 +256,7 @@ void generic_smp_call_function_single_interrupt(void) | |||
| 256 | } | 256 | } |
| 257 | } | 257 | } |
| 258 | 258 | ||
| 259 | static DEFINE_PER_CPU(struct call_single_data, csd_data); | 259 | static DEFINE_PER_CPU_SHARED_ALIGNED(struct call_single_data, csd_data); |
| 260 | 260 | ||
| 261 | /* | 261 | /* |
| 262 | * smp_call_function_single - Run a function on a specific CPU | 262 | * smp_call_function_single - Run a function on a specific CPU |
