irq_32.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. /*
  2. * arch/sparc/kernel/irq.c: Interrupt request handling routines. On the
  3. * Sparc the IRQs are basically 'cast in stone'
  4. * and you are supposed to probe the prom's device
  5. * node trees to find out who's got which IRQ.
  6. *
  7. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  8. * Copyright (C) 1995 Miguel de Icaza (miguel@nuclecu.unam.mx)
  9. * Copyright (C) 1995,2002 Pete A. Zaitcev (zaitcev@yahoo.com)
  10. * Copyright (C) 1996 Dave Redman (djhr@tadpole.co.uk)
  11. * Copyright (C) 1998-2000 Anton Blanchard (anton@samba.org)
  12. */
  13. #include <linux/module.h>
  14. #include <linux/sched.h>
  15. #include <linux/ptrace.h>
  16. #include <linux/errno.h>
  17. #include <linux/linkage.h>
  18. #include <linux/kernel_stat.h>
  19. #include <linux/signal.h>
  20. #include <linux/interrupt.h>
  21. #include <linux/slab.h>
  22. #include <linux/random.h>
  23. #include <linux/init.h>
  24. #include <linux/smp.h>
  25. #include <linux/delay.h>
  26. #include <linux/threads.h>
  27. #include <linux/spinlock.h>
  28. #include <linux/seq_file.h>
  29. #include <asm/ptrace.h>
  30. #include <asm/processor.h>
  31. #include <asm/system.h>
  32. #include <asm/psr.h>
  33. #include <asm/smp.h>
  34. #include <asm/vaddrs.h>
  35. #include <asm/timer.h>
  36. #include <asm/openprom.h>
  37. #include <asm/oplib.h>
  38. #include <asm/traps.h>
  39. #include <asm/irq.h>
  40. #include <asm/io.h>
  41. #include <asm/pgalloc.h>
  42. #include <asm/pgtable.h>
  43. #include <asm/pcic.h>
  44. #include <asm/cacheflush.h>
  45. #include <asm/irq_regs.h>
  46. #include <asm/leon.h>
  47. #include "kernel.h"
  48. #include "irq.h"
  49. #ifdef CONFIG_SMP
  50. #define SMP_NOP2 "nop; nop;\n\t"
  51. #define SMP_NOP3 "nop; nop; nop;\n\t"
  52. #else
  53. #define SMP_NOP2
  54. #define SMP_NOP3
  55. #endif /* SMP */
  56. unsigned long __raw_local_irq_save(void)
  57. {
  58. unsigned long retval;
  59. unsigned long tmp;
  60. __asm__ __volatile__(
  61. "rd %%psr, %0\n\t"
  62. SMP_NOP3 /* Sun4m + Cypress + SMP bug */
  63. "or %0, %2, %1\n\t"
  64. "wr %1, 0, %%psr\n\t"
  65. "nop; nop; nop\n"
  66. : "=&r" (retval), "=r" (tmp)
  67. : "i" (PSR_PIL)
  68. : "memory");
  69. return retval;
  70. }
  71. void raw_local_irq_enable(void)
  72. {
  73. unsigned long tmp;
  74. __asm__ __volatile__(
  75. "rd %%psr, %0\n\t"
  76. SMP_NOP3 /* Sun4m + Cypress + SMP bug */
  77. "andn %0, %1, %0\n\t"
  78. "wr %0, 0, %%psr\n\t"
  79. "nop; nop; nop\n"
  80. : "=&r" (tmp)
  81. : "i" (PSR_PIL)
  82. : "memory");
  83. }
  84. void raw_local_irq_restore(unsigned long old_psr)
  85. {
  86. unsigned long tmp;
  87. __asm__ __volatile__(
  88. "rd %%psr, %0\n\t"
  89. "and %2, %1, %2\n\t"
  90. SMP_NOP2 /* Sun4m + Cypress + SMP bug */
  91. "andn %0, %1, %0\n\t"
  92. "wr %0, %2, %%psr\n\t"
  93. "nop; nop; nop\n"
  94. : "=&r" (tmp)
  95. : "i" (PSR_PIL), "r" (old_psr)
  96. : "memory");
  97. }
  98. EXPORT_SYMBOL(__raw_local_irq_save);
  99. EXPORT_SYMBOL(raw_local_irq_enable);
  100. EXPORT_SYMBOL(raw_local_irq_restore);
  101. /*
  102. * Dave Redman (djhr@tadpole.co.uk)
  103. *
  104. * IRQ numbers.. These are no longer restricted to 15..
  105. *
  106. * this is done to enable SBUS cards and onboard IO to be masked
  107. * correctly. using the interrupt level isn't good enough.
  108. *
  109. * For example:
  110. * A device interrupting at sbus level6 and the Floppy both come in
  111. * at IRQ11, but enabling and disabling them requires writing to
  112. * different bits in the SLAVIO/SEC.
  113. *
  114. * As a result of these changes sun4m machines could now support
  115. * directed CPU interrupts using the existing enable/disable irq code
  116. * with tweaks.
  117. *
  118. */
  119. static void irq_panic(void)
  120. {
  121. extern char *cputypval;
  122. prom_printf("machine: %s doesn't have irq handlers defined!\n",cputypval);
  123. prom_halt();
  124. }
  125. void (*sparc_init_timers)(irq_handler_t ) =
  126. (void (*)(irq_handler_t )) irq_panic;
  127. /*
  128. * Dave Redman (djhr@tadpole.co.uk)
  129. *
  130. * There used to be extern calls and hard coded values here.. very sucky!
  131. * instead, because some of the devices attach very early, I do something
  132. * equally sucky but at least we'll never try to free statically allocated
  133. * space or call kmalloc before kmalloc_init :(.
  134. *
  135. * In fact it's the timer10 that attaches first.. then timer14
  136. * then kmalloc_init is called.. then the tty interrupts attach.
  137. * hmmm....
  138. *
  139. */
  140. #define MAX_STATIC_ALLOC 4
  141. struct irqaction static_irqaction[MAX_STATIC_ALLOC];
  142. int static_irq_count;
  143. static struct {
  144. struct irqaction *action;
  145. int flags;
  146. } sparc_irq[NR_IRQS];
  147. #define SPARC_IRQ_INPROGRESS 1
  148. /* Used to protect the IRQ action lists */
  149. DEFINE_SPINLOCK(irq_action_lock);
  150. int show_interrupts(struct seq_file *p, void *v)
  151. {
  152. int i = *(loff_t *) v;
  153. struct irqaction * action;
  154. unsigned long flags;
  155. #ifdef CONFIG_SMP
  156. int j;
  157. #endif
  158. if (sparc_cpu_model == sun4d) {
  159. extern int show_sun4d_interrupts(struct seq_file *, void *);
  160. return show_sun4d_interrupts(p, v);
  161. }
  162. spin_lock_irqsave(&irq_action_lock, flags);
  163. if (i < NR_IRQS) {
  164. action = sparc_irq[i].action;
  165. if (!action)
  166. goto out_unlock;
  167. seq_printf(p, "%3d: ", i);
  168. #ifndef CONFIG_SMP
  169. seq_printf(p, "%10u ", kstat_irqs(i));
  170. #else
  171. for_each_online_cpu(j) {
  172. seq_printf(p, "%10u ",
  173. kstat_cpu(j).irqs[i]);
  174. }
  175. #endif
  176. seq_printf(p, " %c %s",
  177. (action->flags & IRQF_DISABLED) ? '+' : ' ',
  178. action->name);
  179. for (action=action->next; action; action = action->next) {
  180. seq_printf(p, ",%s %s",
  181. (action->flags & IRQF_DISABLED) ? " +" : "",
  182. action->name);
  183. }
  184. seq_putc(p, '\n');
  185. }
  186. out_unlock:
  187. spin_unlock_irqrestore(&irq_action_lock, flags);
  188. return 0;
  189. }
  190. void free_irq(unsigned int irq, void *dev_id)
  191. {
  192. struct irqaction * action;
  193. struct irqaction **actionp;
  194. unsigned long flags;
  195. unsigned int cpu_irq;
  196. if (sparc_cpu_model == sun4d) {
  197. extern void sun4d_free_irq(unsigned int, void *);
  198. sun4d_free_irq(irq, dev_id);
  199. return;
  200. }
  201. cpu_irq = irq & (NR_IRQS - 1);
  202. if (cpu_irq > 14) { /* 14 irq levels on the sparc */
  203. printk("Trying to free bogus IRQ %d\n", irq);
  204. return;
  205. }
  206. spin_lock_irqsave(&irq_action_lock, flags);
  207. actionp = &sparc_irq[cpu_irq].action;
  208. action = *actionp;
  209. if (!action->handler) {
  210. printk("Trying to free free IRQ%d\n",irq);
  211. goto out_unlock;
  212. }
  213. if (dev_id) {
  214. for (; action; action = action->next) {
  215. if (action->dev_id == dev_id)
  216. break;
  217. actionp = &action->next;
  218. }
  219. if (!action) {
  220. printk("Trying to free free shared IRQ%d\n",irq);
  221. goto out_unlock;
  222. }
  223. } else if (action->flags & IRQF_SHARED) {
  224. printk("Trying to free shared IRQ%d with NULL device ID\n", irq);
  225. goto out_unlock;
  226. }
  227. if (action->flags & SA_STATIC_ALLOC)
  228. {
  229. /* This interrupt is marked as specially allocated
  230. * so it is a bad idea to free it.
  231. */
  232. printk("Attempt to free statically allocated IRQ%d (%s)\n",
  233. irq, action->name);
  234. goto out_unlock;
  235. }
  236. *actionp = action->next;
  237. spin_unlock_irqrestore(&irq_action_lock, flags);
  238. synchronize_irq(irq);
  239. spin_lock_irqsave(&irq_action_lock, flags);
  240. kfree(action);
  241. if (!sparc_irq[cpu_irq].action)
  242. __disable_irq(irq);
  243. out_unlock:
  244. spin_unlock_irqrestore(&irq_action_lock, flags);
  245. }
  246. EXPORT_SYMBOL(free_irq);
  247. /*
  248. * This is called when we want to synchronize with
  249. * interrupts. We may for example tell a device to
  250. * stop sending interrupts: but to make sure there
  251. * are no interrupts that are executing on another
  252. * CPU we need to call this function.
  253. */
  254. #ifdef CONFIG_SMP
  255. void synchronize_irq(unsigned int irq)
  256. {
  257. unsigned int cpu_irq;
  258. cpu_irq = irq & (NR_IRQS - 1);
  259. while (sparc_irq[cpu_irq].flags & SPARC_IRQ_INPROGRESS)
  260. cpu_relax();
  261. }
  262. EXPORT_SYMBOL(synchronize_irq);
  263. #endif /* SMP */
  264. void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs)
  265. {
  266. int i;
  267. struct irqaction * action;
  268. unsigned int cpu_irq;
  269. cpu_irq = irq & (NR_IRQS - 1);
  270. action = sparc_irq[cpu_irq].action;
  271. printk("IO device interrupt, irq = %d\n", irq);
  272. printk("PC = %08lx NPC = %08lx FP=%08lx\n", regs->pc,
  273. regs->npc, regs->u_regs[14]);
  274. if (action) {
  275. printk("Expecting: ");
  276. for (i = 0; i < 16; i++)
  277. if (action->handler)
  278. printk("[%s:%d:0x%x] ", action->name,
  279. (int) i, (unsigned int) action->handler);
  280. }
  281. printk("AIEEE\n");
  282. panic("bogus interrupt received");
  283. }
  284. void handler_irq(int irq, struct pt_regs * regs)
  285. {
  286. struct pt_regs *old_regs;
  287. struct irqaction * action;
  288. int cpu = smp_processor_id();
  289. #ifdef CONFIG_SMP
  290. extern void smp4m_irq_rotate(int cpu);
  291. #endif
  292. old_regs = set_irq_regs(regs);
  293. irq_enter();
  294. disable_pil_irq(irq);
  295. #ifdef CONFIG_SMP
  296. /* Only rotate on lower priority IRQs (scsi, ethernet, etc.). */
  297. if((sparc_cpu_model==sun4m) && (irq < 10))
  298. smp4m_irq_rotate(cpu);
  299. #endif
  300. action = sparc_irq[irq].action;
  301. sparc_irq[irq].flags |= SPARC_IRQ_INPROGRESS;
  302. kstat_cpu(cpu).irqs[irq]++;
  303. do {
  304. if (!action || !action->handler)
  305. unexpected_irq(irq, NULL, regs);
  306. action->handler(irq, action->dev_id);
  307. action = action->next;
  308. } while (action);
  309. sparc_irq[irq].flags &= ~SPARC_IRQ_INPROGRESS;
  310. enable_pil_irq(irq);
  311. irq_exit();
  312. set_irq_regs(old_regs);
  313. }
  314. #if defined(CONFIG_BLK_DEV_FD) || defined(CONFIG_BLK_DEV_FD_MODULE)
  315. /* Fast IRQs on the Sparc can only have one routine attached to them,
  316. * thus no sharing possible.
  317. */
  318. static int request_fast_irq(unsigned int irq,
  319. void (*handler)(void),
  320. unsigned long irqflags, const char *devname)
  321. {
  322. struct irqaction *action;
  323. unsigned long flags;
  324. unsigned int cpu_irq;
  325. int ret;
  326. #ifdef CONFIG_SMP
  327. struct tt_entry *trap_table;
  328. extern struct tt_entry trapbase_cpu1, trapbase_cpu2, trapbase_cpu3;
  329. #endif
  330. cpu_irq = irq & (NR_IRQS - 1);
  331. if(cpu_irq > 14) {
  332. ret = -EINVAL;
  333. goto out;
  334. }
  335. if(!handler) {
  336. ret = -EINVAL;
  337. goto out;
  338. }
  339. spin_lock_irqsave(&irq_action_lock, flags);
  340. action = sparc_irq[cpu_irq].action;
  341. if(action) {
  342. if(action->flags & IRQF_SHARED)
  343. panic("Trying to register fast irq when already shared.\n");
  344. if(irqflags & IRQF_SHARED)
  345. panic("Trying to register fast irq as shared.\n");
  346. /* Anyway, someone already owns it so cannot be made fast. */
  347. printk("request_fast_irq: Trying to register yet already owned.\n");
  348. ret = -EBUSY;
  349. goto out_unlock;
  350. }
  351. /* If this is flagged as statically allocated then we use our
  352. * private struct which is never freed.
  353. */
  354. if (irqflags & SA_STATIC_ALLOC) {
  355. if (static_irq_count < MAX_STATIC_ALLOC)
  356. action = &static_irqaction[static_irq_count++];
  357. else
  358. printk("Fast IRQ%d (%s) SA_STATIC_ALLOC failed using kmalloc\n",
  359. irq, devname);
  360. }
  361. if (action == NULL)
  362. action = kmalloc(sizeof(struct irqaction),
  363. GFP_ATOMIC);
  364. if (!action) {
  365. ret = -ENOMEM;
  366. goto out_unlock;
  367. }
  368. /* Dork with trap table if we get this far. */
  369. #define INSTANTIATE(table) \
  370. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_one = SPARC_RD_PSR_L0; \
  371. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_two = \
  372. SPARC_BRANCH((unsigned long) handler, \
  373. (unsigned long) &table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_two);\
  374. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_three = SPARC_RD_WIM_L3; \
  375. table[SP_TRAP_IRQ1+(cpu_irq-1)].inst_four = SPARC_NOP;
  376. INSTANTIATE(sparc_ttable)
  377. #ifdef CONFIG_SMP
  378. trap_table = &trapbase_cpu1; INSTANTIATE(trap_table)
  379. trap_table = &trapbase_cpu2; INSTANTIATE(trap_table)
  380. trap_table = &trapbase_cpu3; INSTANTIATE(trap_table)
  381. #endif
  382. #undef INSTANTIATE
  383. /*
  384. * XXX Correct thing whould be to flush only I- and D-cache lines
  385. * which contain the handler in question. But as of time of the
  386. * writing we have no CPU-neutral interface to fine-grained flushes.
  387. */
  388. flush_cache_all();
  389. action->flags = irqflags;
  390. action->name = devname;
  391. action->dev_id = NULL;
  392. action->next = NULL;
  393. sparc_irq[cpu_irq].action = action;
  394. __enable_irq(irq);
  395. ret = 0;
  396. out_unlock:
  397. spin_unlock_irqrestore(&irq_action_lock, flags);
  398. out:
  399. return ret;
  400. }
  401. /* These variables are used to access state from the assembler
  402. * interrupt handler, floppy_hardint, so we cannot put these in
  403. * the floppy driver image because that would not work in the
  404. * modular case.
  405. */
  406. volatile unsigned char *fdc_status;
  407. EXPORT_SYMBOL(fdc_status);
  408. char *pdma_vaddr;
  409. EXPORT_SYMBOL(pdma_vaddr);
  410. unsigned long pdma_size;
  411. EXPORT_SYMBOL(pdma_size);
  412. volatile int doing_pdma;
  413. EXPORT_SYMBOL(doing_pdma);
  414. char *pdma_base;
  415. EXPORT_SYMBOL(pdma_base);
  416. unsigned long pdma_areasize;
  417. EXPORT_SYMBOL(pdma_areasize);
  418. extern void floppy_hardint(void);
  419. static irq_handler_t floppy_irq_handler;
  420. void sparc_floppy_irq(int irq, void *dev_id, struct pt_regs *regs)
  421. {
  422. struct pt_regs *old_regs;
  423. int cpu = smp_processor_id();
  424. old_regs = set_irq_regs(regs);
  425. disable_pil_irq(irq);
  426. irq_enter();
  427. kstat_cpu(cpu).irqs[irq]++;
  428. floppy_irq_handler(irq, dev_id);
  429. irq_exit();
  430. enable_pil_irq(irq);
  431. set_irq_regs(old_regs);
  432. // XXX Eek, it's totally changed with preempt_count() and such
  433. // if (softirq_pending(cpu))
  434. // do_softirq();
  435. }
  436. int sparc_floppy_request_irq(int irq, unsigned long flags,
  437. irq_handler_t irq_handler)
  438. {
  439. floppy_irq_handler = irq_handler;
  440. return request_fast_irq(irq, floppy_hardint, flags, "floppy");
  441. }
  442. EXPORT_SYMBOL(sparc_floppy_request_irq);
  443. #endif
  444. int request_irq(unsigned int irq,
  445. irq_handler_t handler,
  446. unsigned long irqflags, const char * devname, void *dev_id)
  447. {
  448. struct irqaction * action, **actionp;
  449. unsigned long flags;
  450. unsigned int cpu_irq;
  451. int ret;
  452. if (sparc_cpu_model == sun4d) {
  453. extern int sun4d_request_irq(unsigned int,
  454. irq_handler_t ,
  455. unsigned long, const char *, void *);
  456. return sun4d_request_irq(irq, handler, irqflags, devname, dev_id);
  457. }
  458. cpu_irq = irq & (NR_IRQS - 1);
  459. if(cpu_irq > 14) {
  460. ret = -EINVAL;
  461. goto out;
  462. }
  463. if (!handler) {
  464. ret = -EINVAL;
  465. goto out;
  466. }
  467. spin_lock_irqsave(&irq_action_lock, flags);
  468. actionp = &sparc_irq[cpu_irq].action;
  469. action = *actionp;
  470. if (action) {
  471. if (!(action->flags & IRQF_SHARED) || !(irqflags & IRQF_SHARED)) {
  472. ret = -EBUSY;
  473. goto out_unlock;
  474. }
  475. if ((action->flags & IRQF_DISABLED) != (irqflags & IRQF_DISABLED)) {
  476. printk("Attempt to mix fast and slow interrupts on IRQ%d denied\n", irq);
  477. ret = -EBUSY;
  478. goto out_unlock;
  479. }
  480. for ( ; action; action = *actionp)
  481. actionp = &action->next;
  482. }
  483. /* If this is flagged as statically allocated then we use our
  484. * private struct which is never freed.
  485. */
  486. if (irqflags & SA_STATIC_ALLOC) {
  487. if (static_irq_count < MAX_STATIC_ALLOC)
  488. action = &static_irqaction[static_irq_count++];
  489. else
  490. printk("Request for IRQ%d (%s) SA_STATIC_ALLOC failed using kmalloc\n", irq, devname);
  491. }
  492. if (action == NULL)
  493. action = kmalloc(sizeof(struct irqaction),
  494. GFP_ATOMIC);
  495. if (!action) {
  496. ret = -ENOMEM;
  497. goto out_unlock;
  498. }
  499. action->handler = handler;
  500. action->flags = irqflags;
  501. action->name = devname;
  502. action->next = NULL;
  503. action->dev_id = dev_id;
  504. *actionp = action;
  505. __enable_irq(irq);
  506. ret = 0;
  507. out_unlock:
  508. spin_unlock_irqrestore(&irq_action_lock, flags);
  509. out:
  510. return ret;
  511. }
  512. EXPORT_SYMBOL(request_irq);
  513. void disable_irq_nosync(unsigned int irq)
  514. {
  515. __disable_irq(irq);
  516. }
  517. EXPORT_SYMBOL(disable_irq_nosync);
  518. void disable_irq(unsigned int irq)
  519. {
  520. __disable_irq(irq);
  521. }
  522. EXPORT_SYMBOL(disable_irq);
  523. void enable_irq(unsigned int irq)
  524. {
  525. __enable_irq(irq);
  526. }
  527. EXPORT_SYMBOL(enable_irq);
  528. /* We really don't need these at all on the Sparc. We only have
  529. * stubs here because they are exported to modules.
  530. */
  531. unsigned long probe_irq_on(void)
  532. {
  533. return 0;
  534. }
  535. EXPORT_SYMBOL(probe_irq_on);
  536. int probe_irq_off(unsigned long mask)
  537. {
  538. return 0;
  539. }
  540. EXPORT_SYMBOL(probe_irq_off);
  541. /* djhr
  542. * This could probably be made indirect too and assigned in the CPU
  543. * bits of the code. That would be much nicer I think and would also
  544. * fit in with the idea of being able to tune your kernel for your machine
  545. * by removing unrequired machine and device support.
  546. *
  547. */
  548. void __init init_IRQ(void)
  549. {
  550. extern void sun4c_init_IRQ( void );
  551. extern void sun4m_init_IRQ( void );
  552. extern void sun4d_init_IRQ( void );
  553. switch(sparc_cpu_model) {
  554. case sun4c:
  555. case sun4:
  556. sun4c_init_IRQ();
  557. break;
  558. case sun4m:
  559. #ifdef CONFIG_PCI
  560. pcic_probe();
  561. if (pcic_present()) {
  562. sun4m_pci_init_IRQ();
  563. break;
  564. }
  565. #endif
  566. sun4m_init_IRQ();
  567. break;
  568. case sun4d:
  569. sun4d_init_IRQ();
  570. break;
  571. case sparc_leon:
  572. leon_init_IRQ();
  573. break;
  574. default:
  575. prom_printf("Cannot initialize IRQs on this Sun machine...");
  576. break;
  577. }
  578. btfixup();
  579. }
  580. #ifdef CONFIG_PROC_FS
  581. void init_irq_proc(void)
  582. {
  583. /* For now, nothing... */
  584. }
  585. #endif /* CONFIG_PROC_FS */