lkml.org 
[lkml]   [2008]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 08/42] introduce nr_irqs
    On Sat, Aug 9, 2008 at 9:02 AM, Eric W. Biederman <ebiederm@xmission.com> wrote:
    > "Yinghai Lu" <yhlu.kernel@gmail.com> writes:
    >
    >>> Also, what's the point, if it's just a renaming?
    >>
    >> that is the start point.
    >> nr_irqs is variable, and will be probed later. and use that number to
    >> init dyn_alloc.
    >
    > YH.
    >
    > In my conception the code in kernel/irq.c that today does:
    >
    > struct irq_desc *desc;
    > if (irq >= NR_IRQS)
    > return -EINVAL;
    > desc = irq_desc + irq;
    >
    > Should become:
    >
    > struct irq_desc *desc;
    > desc = irq_desc(irq);
    > if (!desc)
    > return -EINVAL;
    >

    OK.

    also want to introduce dummy
    struct irq_desc
    {
    unsigned int irq;
    };

    in linux/interrupt.h if GENERIC_HARDIRQS is not defined.
    so could have same interface
    irq_desc()
    and
    for_each_irq_desc(irq, desc)

    YH


    \
     
     \ /
      Last update: 2008-08-09 23:25    [W:4.130 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site