* [PATCH 1/1] [MIPS] ip22: use a generic method for irq statistics
@ 2009-03-27 11:39 Dmitri Vorobiev
2009-03-27 15:30 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Dmitri Vorobiev @ 2009-03-27 11:39 UTC (permalink / raw)
To: ralf, linux-mips, linux-kernel; +Cc: Dmitri Vorobiev
The structure 'struct kernel_stat' defines the 'irqs' array as its
field only when CONFIG_GENERIC_HARDIRQS is not set. However, the ip22
code makes use of this field unconditionally. As the result, the
following build error is produced:
CC arch/mips/sgi-ip22/ip22-int.o
arch/mips/sgi-ip22/ip22-int.c: In function 'indy_buserror_irq':
arch/mips/sgi-ip22/ip22-int.c:158: error: 'struct kernel_stat' has no
member named 'irqs'
make[1]: *** [arch/mips/sgi-ip22/ip22-int.o] Error 1
make: *** [arch/mips/sgi-ip22] Error 2
This patch fixes the build error by using the generic method for the irq
statistics.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
arch/mips/sgi-ip22/ip22-int.c | 3 ++-
arch/mips/sgi-ip22/ip22-time.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/mips/sgi-ip22/ip22-int.c b/arch/mips/sgi-ip22/ip22-int.c
index f8b18af..e359ee8 100644
--- a/arch/mips/sgi-ip22/ip22-int.c
+++ b/arch/mips/sgi-ip22/ip22-int.c
@@ -153,9 +153,10 @@ extern void ip22_be_interrupt(int irq);
static void indy_buserror_irq(void)
{
int irq = SGI_BUSERR_IRQ;
+ struct irq_desc *desc = irq_to_desc(irq);
irq_enter();
- kstat_this_cpu.irqs[irq]++;
+ kstat_incr_irqs_this_cpu(irq, desc);
ip22_be_interrupt(irq);
irq_exit();
}
diff --git a/arch/mips/sgi-ip22/ip22-time.c b/arch/mips/sgi-ip22/ip22-time.c
index 3dcb27e..2536d78 100644
--- a/arch/mips/sgi-ip22/ip22-time.c
+++ b/arch/mips/sgi-ip22/ip22-time.c
@@ -118,11 +118,12 @@ __init void plat_time_init(void)
void indy_8254timer_irq(void)
{
int irq = SGI_8254_0_IRQ;
+ struct irq_desc *desc = irq_to_desc(irq);
ULONG cnt;
char c;
irq_enter();
- kstat_this_cpu.irqs[irq]++;
+ kstat_incr_irqs_this_cpu(irq, desc);
printk(KERN_ALERT "Oops, got 8254 interrupt.\n");
ArcRead(0, &c, 1, &cnt);
ArcEnterInteractiveMode();
--
1.5.6.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] [MIPS] ip22: use a generic method for irq statistics
2009-03-27 11:39 [PATCH 1/1] [MIPS] ip22: use a generic method for irq statistics Dmitri Vorobiev
@ 2009-03-27 15:30 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-03-27 15:30 UTC (permalink / raw)
To: Dmitri Vorobiev; +Cc: linux-mips, linux-kernel
On Fri, Mar 27, 2009 at 01:39:11PM +0200, Dmitri Vorobiev wrote:
> The structure 'struct kernel_stat' defines the 'irqs' array as its
> field only when CONFIG_GENERIC_HARDIRQS is not set. However, the ip22
> code makes use of this field unconditionally. As the result, the
> following build error is produced:
>
> CC arch/mips/sgi-ip22/ip22-int.o
> arch/mips/sgi-ip22/ip22-int.c: In function 'indy_buserror_irq':
> arch/mips/sgi-ip22/ip22-int.c:158: error: 'struct kernel_stat' has no
> member named 'irqs'
> make[1]: *** [arch/mips/sgi-ip22/ip22-int.o] Error 1
> make: *** [arch/mips/sgi-ip22] Error 2
>
> This patch fixes the build error by using the generic method for the irq
> statistics.
Applied, thanks!
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-27 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27 11:39 [PATCH 1/1] [MIPS] ip22: use a generic method for irq statistics Dmitri Vorobiev
2009-03-27 15:30 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®