lkml.org 
[lkml]   [2005]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: irq 0?
On Mon, 2005-11-07 at 20:54 +0900, Miles Bader wrote:
> I notice that arch/v850/kernel/irq.c has been updated with a
> "show_interrupts" function; in this function it contains the following
> bit of code:
>
>
> if (i == 0) {
> seq_puts(p, " ");
> for (i=0; i < 1 /*smp_num_cpus*/; i++)
> seq_printf(p, "CPU%d ", i);
> seq_putc(p, '\n');
> }
>
> if (i < NR_IRQS) {
> ... show interrupt i ...
> } else if (i == NR_IRQS)
> seq_printf(p, "ERR: %10lu\n", irq_err_count);
>
> where "i" is iterated (by procfs) from 0...NR_IRQS.
>
> On the v850, irq 0 is a real interrupt, so this doesn't really work
> properly -- it doesn't display an entry for irq 0.

What makes you say that? The i==0 code seems to fall through and
therefore should print IRQ0 just fine.

Ian.

--
Ian Campbell
Current Noise: Vader - The Final Massacre

Ignore previous fortune.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-07 13:28    [from the cache]
©2003-2011 Jasper Spaans