diff options
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/smp.h | 7 | ||||
-rw-r--r-- | arch/tile/kernel/smp.c | 19 |
2 files changed, 0 insertions, 26 deletions
diff --git a/arch/tile/include/asm/smp.h b/arch/tile/include/asm/smp.h index 532124ae4b12..1aa759aeb5b3 100644 --- a/arch/tile/include/asm/smp.h +++ b/arch/tile/include/asm/smp.h | |||
@@ -43,10 +43,6 @@ void evaluate_message(int tag); | |||
43 | /* Boot a secondary cpu */ | 43 | /* Boot a secondary cpu */ |
44 | void online_secondary(void); | 44 | void online_secondary(void); |
45 | 45 | ||
46 | /* Call a function on a specified set of CPUs (may include this one). */ | ||
47 | extern void on_each_cpu_mask(const struct cpumask *mask, | ||
48 | void (*func)(void *), void *info, bool wait); | ||
49 | |||
50 | /* Topology of the supervisor tile grid, and coordinates of boot processor */ | 46 | /* Topology of the supervisor tile grid, and coordinates of boot processor */ |
51 | extern HV_Topology smp_topology; | 47 | extern HV_Topology smp_topology; |
52 | 48 | ||
@@ -91,9 +87,6 @@ void print_disabled_cpus(void); | |||
91 | 87 | ||
92 | #else /* !CONFIG_SMP */ | 88 | #else /* !CONFIG_SMP */ |
93 | 89 | ||
94 | #define on_each_cpu_mask(mask, func, info, wait) \ | ||
95 | do { if (cpumask_test_cpu(0, (mask))) func(info); } while (0) | ||
96 | |||
97 | #define smp_master_cpu 0 | 90 | #define smp_master_cpu 0 |
98 | #define smp_height 1 | 91 | #define smp_height 1 |
99 | #define smp_width 1 | 92 | #define smp_width 1 |
diff --git a/arch/tile/kernel/smp.c b/arch/tile/kernel/smp.c index c52224d5ed45..a44e103c5a63 100644 --- a/arch/tile/kernel/smp.c +++ b/arch/tile/kernel/smp.c | |||
@@ -87,25 +87,6 @@ void send_IPI_allbutself(int tag) | |||
87 | send_IPI_many(&mask, tag); | 87 | send_IPI_many(&mask, tag); |
88 | } | 88 | } |
89 | 89 | ||
90 | |||
91 | /* | ||
92 | * Provide smp_call_function_mask, but also run function locally | ||
93 | * if specified in the mask. | ||
94 | */ | ||
95 | void on_each_cpu_mask(const struct cpumask *mask, void (*func)(void *), | ||
96 | void *info, bool wait) | ||
97 | { | ||
98 | int cpu = get_cpu(); | ||
99 | smp_call_function_many(mask, func, info, wait); | ||
100 | if (cpumask_test_cpu(cpu, mask)) { | ||
101 | local_irq_disable(); | ||
102 | func(info); | ||
103 | local_irq_enable(); | ||
104 | } | ||
105 | put_cpu(); | ||
106 | } | ||
107 | |||
108 | |||
109 | /* | 90 | /* |
110 | * Functions related to starting/stopping cpus. | 91 | * Functions related to starting/stopping cpus. |
111 | */ | 92 | */ |