diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/kprobes.c | 4 | ||||
-rw-r--r-- | arch/arm/kernel/smp.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c index 129c1163248b..a79e5c75a96e 100644 --- a/arch/arm/kernel/kprobes.c +++ b/arch/arm/kernel/kprobes.c | |||
@@ -127,7 +127,7 @@ void __kprobes arch_arm_kprobe(struct kprobe *p) | |||
127 | flush_insns(addr, sizeof(u16)); | 127 | flush_insns(addr, sizeof(u16)); |
128 | } else if (addr & 2) { | 128 | } else if (addr & 2) { |
129 | /* A 32-bit instruction spanning two words needs special care */ | 129 | /* A 32-bit instruction spanning two words needs special care */ |
130 | stop_machine(set_t32_breakpoint, (void *)addr, &cpu_online_map); | 130 | stop_machine(set_t32_breakpoint, (void *)addr, cpu_online_mask); |
131 | } else { | 131 | } else { |
132 | /* Word aligned 32-bit instruction can be written atomically */ | 132 | /* Word aligned 32-bit instruction can be written atomically */ |
133 | u32 bkp = KPROBE_THUMB32_BREAKPOINT_INSTRUCTION; | 133 | u32 bkp = KPROBE_THUMB32_BREAKPOINT_INSTRUCTION; |
@@ -190,7 +190,7 @@ int __kprobes __arch_disarm_kprobe(void *p) | |||
190 | 190 | ||
191 | void __kprobes arch_disarm_kprobe(struct kprobe *p) | 191 | void __kprobes arch_disarm_kprobe(struct kprobe *p) |
192 | { | 192 | { |
193 | stop_machine(__arch_disarm_kprobe, p, &cpu_online_map); | 193 | stop_machine(__arch_disarm_kprobe, p, cpu_online_mask); |
194 | } | 194 | } |
195 | 195 | ||
196 | void __kprobes arch_remove_kprobe(struct kprobe *p) | 196 | void __kprobes arch_remove_kprobe(struct kprobe *p) |
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 8f8cce2c46c4..9a4bdde909ce 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -354,7 +354,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
354 | * re-initialize the map in platform_smp_prepare_cpus() if | 354 | * re-initialize the map in platform_smp_prepare_cpus() if |
355 | * present != possible (e.g. physical hotplug). | 355 | * present != possible (e.g. physical hotplug). |
356 | */ | 356 | */ |
357 | init_cpu_present(&cpu_possible_map); | 357 | init_cpu_present(cpu_possible_mask); |
358 | 358 | ||
359 | /* | 359 | /* |
360 | * Initialise the SCU if there are more than one CPU | 360 | * Initialise the SCU if there are more than one CPU |
@@ -586,8 +586,9 @@ void smp_send_stop(void) | |||
586 | unsigned long timeout; | 586 | unsigned long timeout; |
587 | 587 | ||
588 | if (num_online_cpus() > 1) { | 588 | if (num_online_cpus() > 1) { |
589 | cpumask_t mask = cpu_online_map; | 589 | struct cpumask mask; |
590 | cpu_clear(smp_processor_id(), mask); | 590 | cpumask_copy(&mask, cpu_online_mask); |
591 | cpumask_clear_cpu(smp_processor_id(), &mask); | ||
591 | 592 | ||
592 | smp_cross_call(&mask, IPI_CPU_STOP); | 593 | smp_cross_call(&mask, IPI_CPU_STOP); |
593 | } | 594 | } |