Re: TARGET_CPUS in assign_irq_vector

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Eric W. Biederman <ebiederm@...>, Ingo Molnar <mingo@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Tuesday, September 9, 2008 - 9:24 pm

On Tue, Sep 9, 2008 at 5:50 PM, Jeremy Fitzhardinge wrote:

for phys_flat mode: it will get new vector for on new cpu.

>

seems need to rework __assign_irq_vector a little bit.

to
cpumask_t (*vector_allocation_domain_t)(int cpu)
static int __assign_irq_vector(int irq, cpumask_t mask,
vector_allocation_domain_t p)

...

and you could have your own

static cpumask_t vec_domain_alloc(int cpu)
{
cpumask_t domain = cpu_possible_map;
return domain;
}

static int assign_irq_vector_all(int irq)
{
int err;
unsigned long flags;
cpumask_t mask = cpu_possible_map;

spin_lock_irqsave(&vector_lock, flags);
err = __assign_irq_vector(irq, mask, vec_domain_alloc);
spin_unlock_irqrestore(&vector_lock, flags);
return err;
}

YH
--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TARGET_CPUS in assign_irq_vector, Jeremy Fitzhardinge, (Tue Sep 9, 6:30 pm)
Re: TARGET_CPUS in assign_irq_vector, Yinghai Lu, (Tue Sep 9, 6:54 pm)
Re: TARGET_CPUS in assign_irq_vector, Jeremy Fitzhardinge, (Tue Sep 9, 7:46 pm)
Re: TARGET_CPUS in assign_irq_vector, Yinghai Lu, (Tue Sep 9, 8:26 pm)
Re: TARGET_CPUS in assign_irq_vector, Jeremy Fitzhardinge, (Tue Sep 9, 8:50 pm)
Re: TARGET_CPUS in assign_irq_vector, Eric W. Biederman, (Wed Sep 10, 2:45 am)
Re: TARGET_CPUS in assign_irq_vector, Jeremy Fitzhardinge, (Wed Sep 10, 3:44 pm)
Re: TARGET_CPUS in assign_irq_vector, Eric W. Biederman, (Wed Sep 10, 4:07 pm)
Re: TARGET_CPUS in assign_irq_vector, Yinghai Lu, (Tue Sep 9, 9:24 pm)