[lkml]   [2009]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectSome IRQ comment cleanups
    It seems IRQ_DELAYED_DISABLE is dead and desc->chip->handle_irq() now
    lives as desc->handle_irq() (whitespace-damaged). Comments?

    --- a/Documentation/DocBook/genericirq.tmpl
    +++ b/Documentation/DocBook/genericirq.tmpl
    @@ -417,8 +417,8 @@ desc->chip->end();
    To make use of the split implementation, replace the call to
    - __do_IRQ by a call to desc->chip->handle_irq() and associate
    - the appropriate handler function to desc->chip->handle_irq().
    + __do_IRQ by a call to desc->handle_irq() and associate
    + the appropriate handler function to desc->handle_irq().
    In most cases the generic handler implementations should
    be sufficient.
    --- a/arch/arm/include/asm/hw_irq.h
    +++ b/arch/arm/include/asm/hw_irq.h
    @@ -10,14 +10,6 @@ static inline void ack_bad_irq(int irq)

    - * Obsolete inline function for calling irq descriptor handlers.
    - */
    -static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc)
    - desc->handle_irq(irq, desc);
    void set_irq_flags(unsigned int irq, unsigned int flags);

    #define IRQF_VALID (1 << 0)
    --- a/include/linux/irq.h
    +++ b/include/linux/irq.h
    @@ -251,7 +251,7 @@ extern int handle_IRQ_event(unsigned int irq, struct irqacti

    * Built-in IRQ handlers for various IRQ types,
    - * callable via desc->chip->handle_irq()
    + * callable via desc->handle_irq()
    extern void handle_level_irq(unsigned int irq, struct irq_desc *desc);
    extern void handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc);

    Not sure what to do with the following (IRQ_DELAYED_DISABLE):

    static int setup_ioapic_entry(int apic, int irq,
    struct IO_APIC_route_entry *entry,
    unsigned int destination, int trigger,
    int polarity, int vector)
    /* Mask level triggered irqs.
    * Use IRQ_DELAYED_DISABLE for edge triggered irqs.
    if (trigger)
    entry->mask = 1;

    <sect2 id="Delayed_interrupt_disable">
    <title>Delayed interrupt disable</title>
    This per interrupt selectable feature, which was introduced by Russell
    King in the ARM interrupt implementation, does not mask an interrupt
    at the hardware level when disable_irq() is called. The interrupt is
    kept enabled and is masked in the flow handler when an interrupt event
    happens. This prevents losing edge interrupts on hardware which does
    not store an edge interrupt event while the interrupt is disabled at
    the hardware level. When an interrupt arrives while the IRQ_DISABLED
    flag is set, then the interrupt is masked at the hardware level and
    the IRQ_PENDING bit is set. When the interrupt is re-enabled by
    enable_irq() the pending bit is checked and if it is set, the
    interrupt is resent either via hardware or by a software resend
    mechanism. (It's necessary to enable CONFIG_HARDIRQS_SW_RESEND when
    you want to use the delayed interrupt disable feature and your
    hardware is not capable of retriggering an interrupt.)
    The delayed interrupt disable can be runtime enabled, per interrupt,
    by setting the IRQ_DELAYED_DISABLE flag in the irq_desc status field.

    Krzysztof Halasa

     \ /
      Last update: 2009-03-29 18:57    [W:0.021 / U:46.852 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site