]> err.no Git - linux-2.6/commit
[MIPS] A few cleanups in malta_int.c
authorDmitri Vorobiev <dmitri.vorobiev@movial.fi>
Wed, 18 Jun 2008 07:18:21 +0000 (10:18 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:31 +0000 (18:44 +0100)
commit7afed6a6c92fadedde8474bbfd92d6debc5e23b0
treeea745722c02f93ddabc678be08805845cb705524
parentd58eaab5a01b9cf1819ec57271ac214a39bf6278
[MIPS] A few cleanups in malta_int.c

Both the fill_ipi_map() routine and the gic_intr_map array defined
in arch/mips/mips-boards/malta/malta_int.c are not used outside of
the latter file. Thus, these objects can become static. Moreover,
these two objects are used by the MT code only, which is why this
patch adds the appropriate ifdef.

While at it, this patch removes an unnecessary preprocessing macro
in favor of the commonly used ARRAY_SIZE.

Successfully tested using a Qemu-emulated Malta board for both SMP
and UP kernels.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mips-boards/malta/malta_int.c