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>
This commit is contained in:
@@ -198,7 +198,7 @@ static __init int setup_timer_cs(void)
|
||||
static void percpu_ce_setup(enum clock_event_mode mode,
|
||||
struct clock_event_device *evt)
|
||||
{
|
||||
int cpu = __first_cpu(evt->cpumask);
|
||||
int cpu = cpumask_first(evt->cpumask);
|
||||
|
||||
switch (mode) {
|
||||
case CLOCK_EVT_MODE_PERIODIC:
|
||||
@@ -218,7 +218,7 @@ static void percpu_ce_setup(enum clock_event_mode mode,
|
||||
static int percpu_ce_set_next_event(unsigned long delta,
|
||||
struct clock_event_device *evt)
|
||||
{
|
||||
int cpu = __first_cpu(evt->cpumask);
|
||||
int cpu = cpumask_first(evt->cpumask);
|
||||
unsigned int next = (unsigned int)delta;
|
||||
|
||||
sparc_config.load_profile_irq(cpu, next);
|
||||
|
Reference in New Issue
Block a user