sh: Cleanup about SPARSE_IRQ

After commit 37744feebc08 ("sh: remove sh5 support"), sh always
enable SPARSE_IRQ, kill unused MAY_HAVE_SPARSE_IRQ and NR_IRQS
define.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Rich Felker <dalias@libc.org>

authored by Kefeng Wang and committed by Rich Felker 61531cb3 12285ff8

-12
-1
arch/sh/Kconfig
··· 56 select HAVE_STACKPROTECTOR 57 select HAVE_SYSCALL_TRACEPOINTS 58 select IRQ_FORCED_THREADING 59 - select MAY_HAVE_SPARSE_IRQ 60 select MODULES_USE_ELF_RELA 61 select NEED_SG_DMA_LENGTH 62 select NO_DMA if !MMU && !DMA_COHERENT
··· 56 select HAVE_STACKPROTECTOR 57 select HAVE_SYSCALL_TRACEPOINTS 58 select IRQ_FORCED_THREADING 59 select MODULES_USE_ELF_RELA 60 select NEED_SG_DMA_LENGTH 61 select NO_DMA if !MMU && !DMA_COHERENT
-11
arch/sh/include/asm/irq.h
··· 6 #include <asm/machvec.h> 7 8 /* 9 - * Only legacy non-sparseirq platforms have to set a reasonably sane 10 - * value here. sparseirq platforms allocate their irq_descs on the fly, 11 - * so will expand automatically based on the number of registered IRQs. 12 - */ 13 - #ifdef CONFIG_SPARSE_IRQ 14 - # define NR_IRQS 8 15 - #else 16 - # define NR_IRQS 512 17 - #endif 18 - 19 - /* 20 * This is a special IRQ number for indicating that no IRQ has been 21 * triggered and to simply ignore the IRQ dispatch. This is a special 22 * case that can happen with IRQ auto-distribution when multiple CPUs
··· 6 #include <asm/machvec.h> 7 8 /* 9 * This is a special IRQ number for indicating that no IRQ has been 10 * triggered and to simply ignore the IRQ dispatch. This is a special 11 * case that can happen with IRQ auto-distribution when multiple CPUs