lkml.org 
[lkml]   [2010]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/8] tip related: radix tree for spareseirq and logical flat clean up
On 02/13/2010 04:26 AM, Eric W. Biederman wrote:

>> Index: linux-2.6/arch/x86/kernel/irqinit.c
>> ===================================================================
>> --- linux-2.6.orig/arch/x86/kernel/irqinit.c
>> +++ linux-2.6/arch/x86/kernel/irqinit.c
>> @@ -83,16 +83,14 @@ static struct irqaction irq2 = {
>> .name = "cascade",
>> };
>>
>> -DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
>> - [0 ... NR_VECTORS - 1] = -1,
>> -};
>> +DEFINE_PER_CPU(vector_desc_t, vector_desc);
>>
>> int vector_used_by_percpu_irq(unsigned int vector)
>> {
>> int cpu;
>>
>> for_each_online_cpu(cpu) {
>> - if (per_cpu(vector_irq, cpu)[vector] != -1)
>> + if (per_cpu(vector_desc, cpu)[vector] != NULL)
>> return 1;
>> }
>>
>> @@ -139,7 +137,7 @@ void __init init_IRQ(void)
>> * irq's migrate etc.
>> */
>> for (i = 0; i < nr_legacy_irqs; i++)
>> - per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
>> + per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);
>
> I am not familiar with this hunk (it must be in the x86 tree).
> Are you certain we have allocated the legacy irq desc here?

yes.

early_irq_init() is called before init_IRQ in start_kernel()

it will have irq_desc for legacy ready.

YH



\
 
 \ /
  Last update: 2010-02-13 23:41    [W:0.184 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site