mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
MIPS: SGI-IP27: Only reserve interrupts used in Linux
Reduce number of reserved interrupts by removing bits copied from IRIX and not used by Linux. Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Paul Burton <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Cc: [email protected]
This commit is contained in:
1 parent
9d0aaf98dc
commit
78691e4f17
2 files changed
+1
-20
No files matched your search
@@ -8,15 +8,6 @@
|
||||
#ifndef __ASM_SN_INTR_H
|
||||
#define __ASM_SN_INTR_H
|
||||
|
||||
/* Number of interrupt levels associated with each interrupt register. */
|
||||
#define N_INTPEND_BITS 64
|
||||
|
||||
#define INT_PEND0_BASELVL 0
|
||||
#define INT_PEND1_BASELVL 64
|
||||
|
||||
#define N_INTPENDJUNK_BITS 8
|
||||
#define INTPENDJUNK_CLRBIT 0x80
|
||||
|
||||
/*
|
||||
* Macros to manipulate the interrupt register on the calling hub chip.
|
||||
*/
|
||||
@@ -84,14 +75,6 @@ do { \
|
||||
#define CPU_RESCHED_B_IRQ 8
|
||||
#define CPU_CALL_A_IRQ 9
|
||||
#define CPU_CALL_B_IRQ 10
|
||||
#define MSC_MESG_INTR 11
|
||||
#define BASE_PCI_IRQ 12
|
||||
|
||||
/*
|
||||
* INT_PEND0 again, bits determined by hardware / hardcoded:
|
||||
*/
|
||||
#define SDISK_INTR 63 /* SABLE name */
|
||||
#define IP_PEND0_6_63 63 /* What is this bit? */
|
||||
|
||||
/*
|
||||
* INT_PEND1 hard-coded bits:
|
||||
|
||||
@@ -287,11 +287,9 @@ void __init arch_init_irq(void)
|
||||
* Mark these as reserved right away so they won't be used accidentally
|
||||
* later.
|
||||
*/
|
||||
for (i = 0; i <= BASE_PCI_IRQ; i++)
|
||||
for (i = 0; i <= CPU_CALL_B_IRQ; i++)
|
||||
set_bit(i, hub_irq_map);
|
||||
|
||||
set_bit(IP_PEND0_6_63, hub_irq_map);
|
||||
|
||||
for (i = NI_BRDCAST_ERR_A; i <= MSC_PANIC_INTR; i++)
|
||||
set_bit(i, hub_irq_map);
|
||||
|
||||
|
||||
Reference in new issue
Block a user