public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* First steps towards making NO_IRQ a generic concept
@ 2005-11-03 14:49 Matthew Wilcox
  2005-11-03 14:51 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Matthew Wilcox @ 2005-11-03 14:49 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Matthew Wilcox


Hi Linus,

This series of four patches are the first step towards making NO_IRQ a
pervasive concept.  It's bundled up in a git tree for your convenience
(unless I bodged it up, in which case it's your inconvenience).

git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc-2.6.git no_irq

 - Check the irq number is within bounds in the functions which weren't
   already checking.
 - Introduce PCI_NO_IRQ and pci_valid_irq()
   Explicitly initialise pci_dev->irq with PCI_NO_IRQ, allowing us to change
   the value of PCI_NO_IRQ when all drivers have been audited.
 - Use pci_valid_irq() instead of a custom NO_IRQ definition.
   It probably didn't work on half a dozen architectures.
 - Move the definition of NO_IRQ from asm directories to <linux/hardirq.h>.
   Individual architectures can still override it if they want to, but all
   existing definitions were -1.

 drivers/pci/probe.c       |    7 +++++--
 drivers/pcmcia/pd6729.c   |    6 +-----
 include/asm-arm/irq.h     |    8 --------
 include/asm-arm26/irq.h   |    8 --------
 include/asm-frv/irq.h     |    3 ---
 include/asm-parisc/irq.h  |    2 --
 include/asm-powerpc/irq.h |    3 ---
 include/linux/hardirq.h   |   10 ++++++++++
 include/linux/pci.h       |    9 +++++++++
 kernel/irq/manage.c       |   15 +++++++++++++++
 10 files changed, 40 insertions(+), 31 deletions(-)

I'll follow this mail with the patches for other peoples benefits.  They
were previously posted to linux-arch with no responses.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-11-03 20:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 14:49 First steps towards making NO_IRQ a generic concept Matthew Wilcox
2005-11-03 14:51 ` Matthew Wilcox
2005-11-03 15:44   ` Ingo Molnar
2005-11-03 16:02     ` Matthew Wilcox
2005-11-03 16:20       ` Ingo Molnar
2005-11-03 17:05         ` Matthew Wilcox
2005-11-03 20:53           ` Ingo Molnar
2005-11-03 14:51 ` Matthew Wilcox
2005-11-03 17:15   ` Arjan van de Ven
2005-11-03 14:52 ` Matthew Wilcox
2005-11-03 14:52 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox