[PATCH] iSeries: remove some unused bits
Stephen Rothwell
sfr at canb.auug.org.au
Thu Jun 2 18:18:10 EST 2005
Hi all,
This patch removes some unused bits from HvCall.h and some
#includes from other files. Also includes ItLpQueue.h in paca.h in
preference to a stub declaration of struct ItLpQueue.
arch/ppc64/kernel/asm-offsets.c | 1
arch/ppc64/kernel/iSeries_pci.c | 1
arch/ppc64/kernel/mf.c | 1
arch/ppc64/kernel/rtc.c | 1
include/asm-ppc64/iSeries/HvCall.h | 84 -------------------------------------
include/asm-ppc64/paca.h | 2
6 files changed, 3 insertions(+), 87 deletions(-)
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
diff -ruNp linus-iSeries-headers.5/arch/ppc64/kernel/asm-offsets.c linus-iSeries-headers.6/arch/ppc64/kernel/asm-offsets.c
--- linus-iSeries-headers.5/arch/ppc64/kernel/asm-offsets.c 2005-05-20 09:03:13.000000000 +1000
+++ linus-iSeries-headers.6/arch/ppc64/kernel/asm-offsets.c 2005-06-02 15:50:28.000000000 +1000
@@ -31,7 +31,6 @@
#include <asm/paca.h>
#include <asm/lppaca.h>
-#include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/HvLpEvent.h>
#include <asm/rtas.h>
#include <asm/cputable.h>
diff -ruNp linus-iSeries-headers.5/arch/ppc64/kernel/iSeries_pci.c linus-iSeries-headers.6/arch/ppc64/kernel/iSeries_pci.c
--- linus-iSeries-headers.5/arch/ppc64/kernel/iSeries_pci.c 2005-06-02 16:16:36.000000000 +1000
+++ linus-iSeries-headers.6/arch/ppc64/kernel/iSeries_pci.c 2005-06-02 16:48:16.000000000 +1000
@@ -38,7 +38,6 @@
#include <asm/iommu.h>
#include <asm/iSeries/HvCallPci.h>
-#include <asm/iSeries/HvCallSm.h>
#include <asm/iSeries/HvCallXm.h>
#include <asm/iSeries/iSeries_irq.h>
#include <asm/iSeries/iSeries_pci.h>
diff -ruNp linus-iSeries-headers.5/arch/ppc64/kernel/mf.c linus-iSeries-headers.6/arch/ppc64/kernel/mf.c
--- linus-iSeries-headers.5/arch/ppc64/kernel/mf.c 2005-05-26 10:44:08.000000000 +1000
+++ linus-iSeries-headers.6/arch/ppc64/kernel/mf.c 2005-06-02 14:59:25.000000000 +1000
@@ -40,7 +40,6 @@
#include <asm/iSeries/vio.h>
#include <asm/iSeries/mf.h>
#include <asm/iSeries/HvLpConfig.h>
-#include <asm/iSeries/ItSpCommArea.h>
#include <asm/iSeries/ItLpQueue.h>
/*
diff -ruNp linus-iSeries-headers.5/arch/ppc64/kernel/rtc.c linus-iSeries-headers.6/arch/ppc64/kernel/rtc.c
--- linus-iSeries-headers.5/arch/ppc64/kernel/rtc.c 2005-06-02 16:18:54.000000000 +1000
+++ linus-iSeries-headers.6/arch/ppc64/kernel/rtc.c 2005-06-02 16:48:16.000000000 +1000
@@ -44,7 +44,6 @@
#include <asm/iSeries/mf.h>
#include <asm/machdep.h>
-#include <asm/iSeries/ItSpCommArea.h>
extern int piranha_simulator;
diff -ruNp linus-iSeries-headers.5/include/asm-ppc64/iSeries/HvCall.h linus-iSeries-headers.6/include/asm-ppc64/iSeries/HvCall.h
--- linus-iSeries-headers.5/include/asm-ppc64/iSeries/HvCall.h 2005-06-01 14:51:07.000000000 +1000
+++ linus-iSeries-headers.6/include/asm-ppc64/iSeries/HvCall.h 2005-06-02 13:29:59.000000000 +1000
@@ -27,48 +27,6 @@
#include <asm/iSeries/HvTypes.h>
#include <asm/paca.h>
-/*
-enum HvCall_ReturnCode
-{
- HvCall_Good = 0,
- HvCall_Partial = 1,
- HvCall_NotOwned = 2,
- HvCall_NotFreed = 3,
- HvCall_UnspecifiedError = 4
-};
-
-enum HvCall_TypeOfSIT
-{
- HvCall_ReduceOnly = 0,
- HvCall_Unconditional = 1
-};
-
-enum HvCall_TypeOfYield
-{
- HvCall_YieldTimed = 0, // Yield until specified time
- HvCall_YieldToActive = 1, // Yield until all active procs have run
- HvCall_YieldToProc = 2 // Yield until the specified processor has run
-};
-
-enum HvCall_InterruptMasks
-{
- HvCall_MaskIPI = 0x00000001,
- HvCall_MaskLpEvent = 0x00000002,
- HvCall_MaskLpProd = 0x00000004,
- HvCall_MaskTimeout = 0x00000008
-};
-
-enum HvCall_VaryOffChunkRc
-{
- HvCall_VaryOffSucceeded = 0,
- HvCall_VaryOffWithdrawn = 1,
- HvCall_ChunkInLoadArea = 2,
- HvCall_ChunkInHPT = 3,
- HvCall_ChunkNotAccessible = 4,
- HvCall_ChunkInUse = 5
-};
-*/
-
/* Type of yield for HvCallBaseYieldProcessor */
#define HvCall_YieldTimed 0 /* Yield until specified time (tb) */
#define HvCall_YieldToActive 1 /* Yield until all active procs have run */
@@ -139,35 +97,12 @@ static inline void HvCall_setEnabledInte
HvCall1(HvCallBaseSetEnabledInterrupts, enabledInterrupts);
}
-static inline void HvCall_clearLogBuffer(HvLpIndex lpindex)
-{
- HvCall1(HvCallBaseClearLogBuffer, lpindex);
-}
-
-static inline u32 HvCall_getLogBufferCodePage(HvLpIndex lpindex)
-{
- u32 retVal = HvCall1(HvCallBaseGetLogBufferCodePage, lpindex);
- return retVal;
-}
-
-static inline int HvCall_getLogBufferFormat(HvLpIndex lpindex)
-{
- int retVal = HvCall1(HvCallBaseGetLogBufferFormat, lpindex);
- return retVal;
-}
-
-static inline u32 HvCall_getLogBufferLength(HvLpIndex lpindex)
-{
- u32 retVal = HvCall1(HvCallBaseGetLogBufferLength, lpindex);
- return retVal;
-}
-
-static inline void HvCall_setLogBufferFormatAndCodepage(int format, u32 codePage)
+static inline void HvCall_setLogBufferFormatAndCodepage(int format,
+ u32 codePage)
{
HvCall2(HvCallBaseSetLogBufferFormatAndCodePage, format, codePage);
}
-extern int HvCall_readLogBuffer(HvLpIndex lpindex, void *buffer, u64 bufLen);
extern void HvCall_writeLogBuffer(const void *buffer, u64 bufLen);
static inline void HvCall_sendIPI(struct paca_struct *targetPaca)
@@ -175,19 +110,4 @@ static inline void HvCall_sendIPI(struct
HvCall1(HvCallBaseSendIPI, targetPaca->paca_index);
}
-static inline void HvCall_terminateMachineSrc(void)
-{
- HvCall0(HvCallBaseTerminateMachineSrc);
-}
-
-static inline void HvCall_setDABR(unsigned long val)
-{
- HvCall1(HvCallCcSetDABR, val);
-}
-
-static inline void HvCall_setDebugBus(unsigned long val)
-{
- HvCall1(HvCallBaseSetDebugBus, val);
-}
-
#endif /* _HVCALL_H */
diff -ruNp linus-iSeries-headers.5/include/asm-ppc64/paca.h linus-iSeries-headers.6/include/asm-ppc64/paca.h
--- linus-iSeries-headers.5/include/asm-ppc64/paca.h 2005-05-20 09:05:56.000000000 +1000
+++ linus-iSeries-headers.6/include/asm-ppc64/paca.h 2005-06-02 15:52:17.000000000 +1000
@@ -20,13 +20,13 @@
#include <asm/types.h>
#include <asm/lppaca.h>
#include <asm/iSeries/ItLpRegSave.h>
+#include <asm/iSeries/ItLpQueue.h>
#include <asm/mmu.h>
register struct paca_struct *local_paca asm("r13");
#define get_paca() local_paca
struct task_struct;
-struct ItLpQueue;
/*
* Defines the layout of the paca.
-------------- 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/ddbfdacb/attachment.pgp
More information about the Linuxppc64-dev
mailing list