powerpc: Convert the MPIC MSI code to use msi_bitmap
This affects the U3 MSI code as well as the PASEMI MSI code. We keep some of the MPIC routines as helpers, and also the U3 best-guess reservation logic. The rest is replaced by the generic code. And a few printk format changes due to hwirq type change. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
7e7ab36775
commit
25235f712b
@@ -5,6 +5,7 @@
|
||||
#include <linux/irq.h>
|
||||
#include <linux/sysdev.h>
|
||||
#include <asm/dcr.h>
|
||||
#include <asm/msi_bitmap.h>
|
||||
|
||||
/*
|
||||
* Global registers
|
||||
@@ -301,8 +302,7 @@ struct mpic
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PCI_MSI
|
||||
spinlock_t bitmap_lock;
|
||||
unsigned long *hwirq_bitmap;
|
||||
struct msi_bitmap msi_bitmap;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MPIC_BROKEN_REGREAD
|
||||
|
Reference in New Issue
Block a user