Skip to content

Commit 97d7e2e

Browse files
committed
parisc: Use F_EXTEND() macro in iosapic code
and reduce include file list. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 3654f01 commit 97d7e2e

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

drivers/parisc/iosapic.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,10 @@
126126
** o disable IRdT - call disable_irq(vector[line]->processor_irq)
127127
*/
128128

129-
130-
/* FIXME: determine which include files are really needed */
131-
#include <linux/types.h>
132-
#include <linux/kernel.h>
133-
#include <linux/spinlock.h>
134129
#include <linux/pci.h>
135-
#include <linux/init.h>
136-
#include <linux/slab.h>
137-
#include <linux/interrupt.h>
138130

139-
#include <asm/byteorder.h> /* get in-line asm for swab */
140131
#include <asm/pdc.h>
141132
#include <asm/pdcpat.h>
142-
#include <asm/page.h>
143-
#include <asm/io.h> /* read/write functions */
144133
#ifdef CONFIG_SUPERIO
145134
#include <asm/superio.h>
146135
#endif
@@ -168,12 +157,8 @@
168157
#define DBG_IRT(x...)
169158
#endif
170159

171-
#ifdef CONFIG_64BIT
172-
#define COMPARE_IRTE_ADDR(irte, hpa) ((irte)->dest_iosapic_addr == (hpa))
173-
#else
174160
#define COMPARE_IRTE_ADDR(irte, hpa) \
175-
((irte)->dest_iosapic_addr == ((hpa) | 0xffffffff00000000ULL))
176-
#endif
161+
((irte)->dest_iosapic_addr == F_EXTEND(hpa))
177162

178163
#define IOSAPIC_REG_SELECT 0x00
179164
#define IOSAPIC_REG_WINDOW 0x10

0 commit comments

Comments
 (0)