MIPS: Sibyte, SMTC: Use generic method for irq statistics
commitfb33d3080626f100fe0a3447c497047789ee7f07
authorRalf Baechle <ralf@linux-mips.org>
Sat, 28 Mar 2009 17:35:41 +0000 (28 18:35 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 28 Mar 2009 17:35:41 +0000 (28 18:35 +0100)
tree01b6184eb7f41de44ec0ff3eaac364a8b8bd0d8e
parent8582913608543257aec51385db72f833f1d758fa
MIPS: Sibyte, SMTC: Use generic method for irq statistics

The structure 'struct kernel_stat' defines the 'irqs' array as its field
only when CONFIG_GENERIC_HARDIRQS is not set.  MIPS however sets
GENERIC_HARDIRQS for all platforms.  As the result, the following build
error is produced:

  CC      arch/mips/sibyte/bcm1480/smp.o
/home/ralf/src/linux/linux-queue/arch/mips/sibyte/bcm1480/smp.c: In function
‘bcm1480_mailbox_interrupt’:
/home/ralf/src/linux/linux-queue/arch/mips/sibyte/bcm1480/smp.c:183: error:
‘struct kernel_stat’ has no member named ‘irqs’

Similar for the other files modified by this patch.  This patch fixes the
build error by using the generic method for the irq statistics.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/smtc.c
arch/mips/sibyte/bcm1480/smp.c
arch/mips/sibyte/sb1250/smp.c