diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-04-17 21:48:27 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-04-19 01:05:32 -0400 |
commit | e4afa120c98252e44390067c3a6cc775cde30659 (patch) | |
tree | ce3183fd639683531c6dfc37e018f8c3030c3a97 /arch/sparc/kernel | |
parent | 1527781d228cd88af6c2f78c13a9cb43b3f69f30 (diff) |
cpumask: remove __first_cpu / __next_cpu
They were for use by the deprecated first_cpu() and next_cpu() wrappers,
but sparc used them directly.
They're now replaced by cpumask_first / cpumask_next. And __next_cpu_nr
is completely obsolete.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/time_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/time_32.c b/arch/sparc/kernel/time_32.c index 2f80d23a0a44..73825f431b0c 100644 --- a/arch/sparc/kernel/time_32.c +++ b/arch/sparc/kernel/time_32.c | |||
@@ -198,7 +198,7 @@ static __init int setup_timer_cs(void) | |||
198 | static void percpu_ce_setup(enum clock_event_mode mode, | 198 | static void percpu_ce_setup(enum clock_event_mode mode, |
199 | struct clock_event_device *evt) | 199 | struct clock_event_device *evt) |
200 | { | 200 | { |
201 | int cpu = __first_cpu(evt->cpumask); | 201 | int cpu = cpumask_first(evt->cpumask); |
202 | 202 | ||
203 | switch (mode) { | 203 | switch (mode) { |
204 | case CLOCK_EVT_MODE_PERIODIC: | 204 | case CLOCK_EVT_MODE_PERIODIC: |
@@ -218,7 +218,7 @@ static void percpu_ce_setup(enum clock_event_mode mode, | |||
218 | static int percpu_ce_set_next_event(unsigned long delta, | 218 | static int percpu_ce_set_next_event(unsigned long delta, |
219 | struct clock_event_device *evt) | 219 | struct clock_event_device *evt) |
220 | { | 220 | { |
221 | int cpu = __first_cpu(evt->cpumask); | 221 | int cpu = cpumask_first(evt->cpumask); |
222 | unsigned int next = (unsigned int)delta; | 222 | unsigned int next = (unsigned int)delta; |
223 | 223 | ||
224 | sparc_config.load_profile_irq(cpu, next); | 224 | sparc_config.load_profile_irq(cpu, next); |