[PATCH] iSeries: cleanup ItLpQueue.h a bit
Stephen Rothwell
sfr at canb.auug.org.au
Thu Jun 2 18:06:11 EST 2005
Hi all,
Just white space cleaups and move process_iSeries_events into its only
caller.
arch/ppc64/kernel/idle.c | 5 +++++
include/asm-ppc64/iSeries/ItLpQueue.h | 16 ++++------------
2 files changed, 9 insertions(+), 12 deletions(-)
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
diff -ruNp linus-iSeries-headers.4/arch/ppc64/kernel/idle.c linus-iSeries-headers.5/arch/ppc64/kernel/idle.c
--- linus-iSeries-headers.4/arch/ppc64/kernel/idle.c 2005-05-20 09:03:13.000000000 +1000
+++ linus-iSeries-headers.5/arch/ppc64/kernel/idle.c 2005-06-02 18:03:04.000000000 +1000
@@ -42,6 +42,11 @@ static int (*idle_loop)(void);
static unsigned long maxYieldTime = 0;
static unsigned long minYieldTime = 0xffffffffffffffffUL;
+static inline void process_iSeries_events(void)
+{
+ asm volatile ("li 0,0x5555; sc" : : : "r0", "r3");
+}
+
static void yield_shared_processor(void)
{
unsigned long tb;
diff -ruNp linus-iSeries-headers.4/include/asm-ppc64/iSeries/ItLpQueue.h linus-iSeries-headers.5/include/asm-ppc64/iSeries/ItLpQueue.h
--- linus-iSeries-headers.4/include/asm-ppc64/iSeries/ItLpQueue.h 2005-06-01 17:05:16.000000000 +1000
+++ linus-iSeries-headers.5/include/asm-ppc64/iSeries/ItLpQueue.h 2005-06-02 14:55:45.000000000 +1000
@@ -64,9 +64,9 @@ struct ItLpQueue {
u8 xPlicStatus; // 0x01 DedicatedIo or DedicatedLp or NotUsed
u16 xSlicLogicalProcIndex; // 0x02 Logical Proc Index for correlation
u8 xPlicRsvd[12]; // 0x04
- char* xSlicCurEventPtr; // 0x10
- char* xSlicLastValidEventPtr; // 0x18
- char* xSlicEventStackPtr; // 0x20
+ char *xSlicCurEventPtr; // 0x10
+ char *xSlicLastValidEventPtr; // 0x18
+ char *xSlicEventStackPtr; // 0x20
u8 xIndex; // 0x28 unique sequential index.
u8 xSlicRsvd[3]; // 0x29-2b
u32 xInUseWord; // 0x2C
@@ -76,17 +76,9 @@ struct ItLpQueue {
extern struct ItLpQueue xItLpQueue;
-extern struct HvLpEvent * ItLpQueue_getNextLpEvent(struct ItLpQueue *);
+extern struct HvLpEvent *ItLpQueue_getNextLpEvent(struct ItLpQueue *);
extern int ItLpQueue_isLpIntPending(struct ItLpQueue *);
extern unsigned ItLpQueue_process(struct ItLpQueue *, struct pt_regs *);
extern void ItLpQueue_clearValid(struct HvLpEvent *);
-static __inline__ void process_iSeries_events(void)
-{
- __asm__ __volatile__ (
- " li 0,0x5555 \n\
- sc"
- : : : "r0", "r3");
-}
-
#endif /* _ITLPQUEUE_H */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20050602/2527f204/attachment.pgp
More information about the Linuxppc64-dev
mailing list