Skip to content

Commit 61531cb

Browse files
Kefeng WangRich Felker
authored andcommitted
sh: Cleanup about SPARSE_IRQ
After commit 37744fe ("sh: remove sh5 support"), sh always enable SPARSE_IRQ, kill unused MAY_HAVE_SPARSE_IRQ and NR_IRQS define. Cc: Yoshinori Sato <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Rich Felker <[email protected]>
1 parent 12285ff commit 61531cb

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

arch/sh/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ config SUPERH
5656
select HAVE_STACKPROTECTOR
5757
select HAVE_SYSCALL_TRACEPOINTS
5858
select IRQ_FORCED_THREADING
59-
select MAY_HAVE_SPARSE_IRQ
6059
select MODULES_USE_ELF_RELA
6160
select NEED_SG_DMA_LENGTH
6261
select NO_DMA if !MMU && !DMA_COHERENT

arch/sh/include/asm/irq.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55
#include <linux/cpumask.h>
66
#include <asm/machvec.h>
77

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-
198
/*
209
* This is a special IRQ number for indicating that no IRQ has been
2110
* triggered and to simply ignore the IRQ dispatch. This is a special

0 commit comments

Comments
 (0)