sh: Cleanup about SPARSE_IRQ
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 29 Sep 2021 02:35:20 +0000 (10:35 +0800)
committerRich Felker <dalias@libc.org>
Wed, 27 Oct 2021 20:50:52 +0000 (16:50 -0400)
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>
arch/sh/Kconfig
arch/sh/include/asm/irq.h

index 6904f4bdbf00444a0e4280b49c97b4400d8779fc..70afb30e0b321183e908c30851e91b0fbe4b57e2 100644 (file)
@@ -56,7 +56,6 @@ config SUPERH
        select HAVE_STACKPROTECTOR
        select HAVE_SYSCALL_TRACEPOINTS
        select IRQ_FORCED_THREADING
-       select MAY_HAVE_SPARSE_IRQ
        select MODULES_USE_ELF_RELA
        select NEED_SG_DMA_LENGTH
        select NO_DMA if !MMU && !DMA_COHERENT
index 839551ce398c5bfb4c2c4d16f5624c0013ff5014..1c4923502fd4c1b69bb115de8121d3731a2ce641 100644 (file)
@@ -5,17 +5,6 @@
 #include <linux/cpumask.h>
 #include <asm/machvec.h>
 
-/*
- * Only legacy non-sparseirq platforms have to set a reasonably sane
- * value here. sparseirq platforms allocate their irq_descs on the fly,
- * so will expand automatically based on the number of registered IRQs.
- */
-#ifdef CONFIG_SPARSE_IRQ
-# define NR_IRQS               8
-#else
-# define NR_IRQS               512
-#endif
-
 /*
  * This is a special IRQ number for indicating that no IRQ has been
  * triggered and to simply ignore the IRQ dispatch. This is a special