irq.c (8d60a903d986ffa26c41f0092320a3b9da20bfaf) irq.c (8854700115ecf8aa6f087aa915b7b6cf18090d39)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Code to handle x86 style IRQs plus some generic interrupt stuff.
7 *
8 * Copyright (C) 1992 Linus Torvalds

--- 7 unchanged lines hidden (view full) ---

16#include <linux/module.h>
17#include <linux/proc_fs.h>
18#include <linux/slab.h>
19#include <linux/mm.h>
20#include <linux/random.h>
21#include <linux/sched.h>
22#include <linux/seq_file.h>
23#include <linux/kallsyms.h>
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Code to handle x86 style IRQs plus some generic interrupt stuff.
7 *
8 * Copyright (C) 1992 Linus Torvalds

--- 7 unchanged lines hidden (view full) ---

16#include <linux/module.h>
17#include <linux/proc_fs.h>
18#include <linux/slab.h>
19#include <linux/mm.h>
20#include <linux/random.h>
21#include <linux/sched.h>
22#include <linux/seq_file.h>
23#include <linux/kallsyms.h>
24#include <linux/kgdb.h>
24
25#include <asm/atomic.h>
26#include <asm/system.h>
27#include <asm/uaccess.h>
28
25
26#include <asm/atomic.h>
27#include <asm/system.h>
28#include <asm/uaccess.h>
29
30#ifdef CONFIG_KGDB
31int kgdb_early_setup;
32#endif
33
29static unsigned long irq_map[NR_IRQS / BITS_PER_LONG];
30
31int allocate_irqno(void)
32{
33 int irq;
34
35again:
36 irq = find_first_zero_bit(irq_map, NR_IRQS);

--- 88 unchanged lines hidden (view full) ---

125{
126 atomic_inc(&irq_err_count);
127}
128
129void __init init_IRQ(void)
130{
131 int i;
132
34static unsigned long irq_map[NR_IRQS / BITS_PER_LONG];
35
36int allocate_irqno(void)
37{
38 int irq;
39
40again:
41 irq = find_first_zero_bit(irq_map, NR_IRQS);

--- 88 unchanged lines hidden (view full) ---

130{
131 atomic_inc(&irq_err_count);
132}
133
134void __init init_IRQ(void)
135{
136 int i;
137
138#ifdef CONFIG_KGDB
139 if (kgdb_early_setup)
140 return;
141#endif
142
133 for (i = 0; i < NR_IRQS; i++)
134 set_irq_noprobe(i);
135
136 arch_init_irq();
143 for (i = 0; i < NR_IRQS; i++)
144 set_irq_noprobe(i);
145
146 arch_init_irq();
147
148#ifdef CONFIG_KGDB
149 if (!kgdb_early_setup)
150 kgdb_early_setup = 1;
151#endif
137}
152}