s5j/irq: fix incorrect NR_IRQS definition
authorHeesub Shin <heesub.shin@samsung.com>
Tue, 21 Mar 2017 11:19:43 +0000 (20:19 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Mon, 17 Apr 2017 10:52:06 +0000 (19:52 +0900)
commit3329f25d369d52f72fecba0191d38c5f75b07714
treef5fdb4e0a1adb5e3ec2a40e74986c588909f5138
parent14981621df4a7de1c41c0cb3c206404d30d4b17a
s5j/irq: fix incorrect NR_IRQS definition

NR_IRQS is currently defined as 512. This is unnecessarily huge given
that we have 16 SGIs, 16 PPIs, and only 96 SPIs for external interrupt
sources. As a result, the IRQ vector table in kernel, g_irqvector[],
becomes unnecessarily huge, consuming memory spaces.

Here is a comparison table of libkernel.a for each configuration:

    NR_IRQS    .data    .bss     .text     Total
    512        0       3912      25664    29576
    128        0       2376      25664    28040

As you can see, nearly one and half kilobytes of .bss reduces when
NR_IRQS=128.

Change-Id: Ib90aa90677261ad6b2a680a28a8929085905209b
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/include/s5j/soc/s5jt200_irq.h