diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 21:14:11 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 21:14:11 -0400 |
| commit | 94a8d5caba74211ec76dac80fc6e2d5c391530df (patch) | |
| tree | 21d17d214a354ae00ae27217d82b67bfc5bff3a3 /arch/alpha | |
| parent | 2bcd57ab61e7cabed626226a3771617981c11ce1 (diff) | |
| parent | 6ba2ef7baac23a5d9bb85e28b882d16b439a2293 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
* git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus: (39 commits)
cpumask: Move deprecated functions to end of header.
cpumask: remove unused deprecated functions, avoid accusations of insanity
cpumask: use new-style cpumask ops in mm/quicklist.
cpumask: use mm_cpumask() wrapper: x86
cpumask: use mm_cpumask() wrapper: um
cpumask: use mm_cpumask() wrapper: mips
cpumask: use mm_cpumask() wrapper: mn10300
cpumask: use mm_cpumask() wrapper: m32r
cpumask: use mm_cpumask() wrapper: arm
cpumask: Use accessors for cpu_*_mask: um
cpumask: Use accessors for cpu_*_mask: powerpc
cpumask: Use accessors for cpu_*_mask: mips
cpumask: Use accessors for cpu_*_mask: m32r
cpumask: remove arch_send_call_function_ipi
cpumask: arch_send_call_function_ipi_mask: s390
cpumask: arch_send_call_function_ipi_mask: powerpc
cpumask: arch_send_call_function_ipi_mask: mips
cpumask: arch_send_call_function_ipi_mask: m32r
cpumask: arch_send_call_function_ipi_mask: alpha
cpumask: remove obsolete topology_core_siblings and topology_thread_siblings: ia64
...
Diffstat (limited to 'arch/alpha')
| -rw-r--r-- | arch/alpha/include/asm/smp.h | 2 | ||||
| -rw-r--r-- | arch/alpha/include/asm/topology.h | 18 | ||||
| -rw-r--r-- | arch/alpha/kernel/smp.c | 14 |
3 files changed, 8 insertions, 26 deletions
diff --git a/arch/alpha/include/asm/smp.h b/arch/alpha/include/asm/smp.h index 547e90951cec..3f390e8cc0b3 100644 --- a/arch/alpha/include/asm/smp.h +++ b/arch/alpha/include/asm/smp.h | |||
| @@ -47,7 +47,7 @@ extern struct cpuinfo_alpha cpu_data[NR_CPUS]; | |||
| 47 | extern int smp_num_cpus; | 47 | extern int smp_num_cpus; |
| 48 | 48 | ||
| 49 | extern void arch_send_call_function_single_ipi(int cpu); | 49 | extern void arch_send_call_function_single_ipi(int cpu); |
| 50 | extern void arch_send_call_function_ipi(cpumask_t mask); | 50 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); |
| 51 | 51 | ||
| 52 | #else /* CONFIG_SMP */ | 52 | #else /* CONFIG_SMP */ |
| 53 | 53 | ||
diff --git a/arch/alpha/include/asm/topology.h b/arch/alpha/include/asm/topology.h index b4f284c72ff3..36b3a30ba0e5 100644 --- a/arch/alpha/include/asm/topology.h +++ b/arch/alpha/include/asm/topology.h | |||
| @@ -22,23 +22,6 @@ static inline int cpu_to_node(int cpu) | |||
| 22 | return node; | 22 | return node; |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | static inline cpumask_t node_to_cpumask(int node) | ||
| 26 | { | ||
| 27 | cpumask_t node_cpu_mask = CPU_MASK_NONE; | ||
| 28 | int cpu; | ||
| 29 | |||
| 30 | for_each_online_cpu(cpu) { | ||
| 31 | if (cpu_to_node(cpu) == node) | ||
| 32 | cpu_set(cpu, node_cpu_mask); | ||
| 33 | } | ||
| 34 | |||
| 35 | #ifdef DEBUG_NUMA | ||
| 36 | printk("node %d: cpu_mask: %016lx\n", node, node_cpu_mask); | ||
| 37 | #endif | ||
| 38 | |||
| 39 | return node_cpu_mask; | ||
| 40 | } | ||
| 41 | |||
| 42 | extern struct cpumask node_to_cpumask_map[]; | 25 | extern struct cpumask node_to_cpumask_map[]; |
| 43 | /* FIXME: This is dumb, recalculating every time. But simple. */ | 26 | /* FIXME: This is dumb, recalculating every time. But simple. */ |
| 44 | static const struct cpumask *cpumask_of_node(int node) | 27 | static const struct cpumask *cpumask_of_node(int node) |
| @@ -55,7 +38,6 @@ static const struct cpumask *cpumask_of_node(int node) | |||
| 55 | return &node_to_cpumask_map[node]; | 38 | return &node_to_cpumask_map[node]; |
| 56 | } | 39 | } |
| 57 | 40 | ||
| 58 | #define pcibus_to_cpumask(bus) (cpu_online_map) | ||
| 59 | #define cpumask_of_pcibus(bus) (cpu_online_mask) | 41 | #define cpumask_of_pcibus(bus) (cpu_online_mask) |
| 60 | 42 | ||
| 61 | #endif /* !CONFIG_NUMA */ | 43 | #endif /* !CONFIG_NUMA */ |
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index b1fe5674c3a1..42aa078a5e4d 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c | |||
| @@ -548,16 +548,16 @@ setup_profiling_timer(unsigned int multiplier) | |||
| 548 | 548 | ||
| 549 | 549 | ||
| 550 | static void | 550 | static void |
| 551 | send_ipi_message(cpumask_t to_whom, enum ipi_message_type operation) | 551 | send_ipi_message(const struct cpumask *to_whom, enum ipi_message_type operation) |
| 552 | { | 552 | { |
| 553 | int i; | 553 | int i; |
| 554 | 554 | ||
| 555 | mb(); | 555 | mb(); |
| 556 | for_each_cpu_mask(i, to_whom) | 556 | for_each_cpu(i, to_whom) |
| 557 | set_bit(operation, &ipi_data[i].bits); | 557 | set_bit(operation, &ipi_data[i].bits); |
| 558 | 558 | ||
| 559 | mb(); | 559 | mb(); |
| 560 | for_each_cpu_mask(i, to_whom) | 560 | for_each_cpu(i, to_whom) |
| 561 | wripir(i); | 561 | wripir(i); |
| 562 | } | 562 | } |
| 563 | 563 | ||
| @@ -624,7 +624,7 @@ smp_send_reschedule(int cpu) | |||
| 624 | printk(KERN_WARNING | 624 | printk(KERN_WARNING |
| 625 | "smp_send_reschedule: Sending IPI to self.\n"); | 625 | "smp_send_reschedule: Sending IPI to self.\n"); |
| 626 | #endif | 626 | #endif |
| 627 | send_ipi_message(cpumask_of_cpu(cpu), IPI_RESCHEDULE); | 627 | send_ipi_message(cpumask_of(cpu), IPI_RESCHEDULE); |
| 628 | } | 628 | } |
| 629 | 629 | ||
| 630 | void | 630 | void |
| @@ -636,17 +636,17 @@ smp_send_stop(void) | |||
| 636 | if (hard_smp_processor_id() != boot_cpu_id) | 636 | if (hard_smp_processor_id() != boot_cpu_id) |
| 637 | printk(KERN_WARNING "smp_send_stop: Not on boot cpu.\n"); | 637 | printk(KERN_WARNING "smp_send_stop: Not on boot cpu.\n"); |
| 638 | #endif | 638 | #endif |
| 639 | send_ipi_message(to_whom, IPI_CPU_STOP); | 639 | send_ipi_message(&to_whom, IPI_CPU_STOP); |
| 640 | } | 640 | } |
| 641 | 641 | ||
| 642 | void arch_send_call_function_ipi(cpumask_t mask) | 642 | void arch_send_call_function_ipi_mask(const struct cpumask *mask) |
| 643 | { | 643 | { |
| 644 | send_ipi_message(mask, IPI_CALL_FUNC); | 644 | send_ipi_message(mask, IPI_CALL_FUNC); |
| 645 | } | 645 | } |
| 646 | 646 | ||
| 647 | void arch_send_call_function_single_ipi(int cpu) | 647 | void arch_send_call_function_single_ipi(int cpu) |
| 648 | { | 648 | { |
| 649 | send_ipi_message(cpumask_of_cpu(cpu), IPI_CALL_FUNC_SINGLE); | 649 | send_ipi_message(cpumask_of(cpu), IPI_CALL_FUNC_SINGLE); |
| 650 | } | 650 | } |
| 651 | 651 | ||
| 652 | static void | 652 | static void |
