Skip to contentSkip to conversation

x86: unify some of kernel/irq*.c

GIT PULL Jeremy Fitzhardinge 2 participants 2 messages Feb 7, 2009 – Feb 9, 2009

lore
Share & tools
lore
#0 lore raw

These changes factor out the differences between 32 and 64-bit do_IRQ and unify the rest. Unfortunately there are still quite a few other differences (like interrupt stack handling) which preclude further easy unification.

Thanks,
J

The following changes since commit f21daa4d04885a34d1972afa9f82a8aebb6152bb:
Ingo Molnar (1):
Merge branch 'out-of-tree'

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git jsgf/x86/unify-irq

Jeremy Fitzhardinge (2):
x86: add handle_irq() to allow interrupt injection
x86: unify do_IRQ()

arch/x86/include/asm/irq.h |    4 +++-
arch/x86/kernel/irq.c      |   38 ++++++++++++++++++++++++++++++++++++++
arch/x86/kernel/irq_32.c   |   29 +++++------------------------
arch/x86/kernel/irq_64.c   |   34 +++++-----------------------------
4 files changed, 51 insertions(+), 54 deletions(-)
#1 lore raw
Quoted 12 lines · Jeremy Fitzhardinge

These changes factor out the differences between 32 and 64-bit do_IRQ and unify the rest. Unfortunately there are still quite a few other differences (like interrupt stack handling) which preclude further easy unification.

Thanks,
J

The following changes since commit f21daa4d04885a34d1972afa9f82a8aebb6152bb:
Ingo Molnar (1):
Merge branch 'out-of-tree'

Quoted 6 lines

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git jsgf/x86/unify-irq

Jeremy Fitzhardinge (2):
x86: add handle_irq() to allow interrupt injection

Why doesnt Xen use a special irqchip, instead of this private hook/layer in the lowlevel x86 arch level?

irqchip is at least well-specified and widely used. do_IRQ() internals on the other hand will become a Xen special quickly. Also, adding a needless function call there obviously does not help native performance.

Ingo