summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/iSeries/HvCallCfg.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-06-21 17:15:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 18:46:28 -0700
commitdd61ce922770b299081c3e729ea65758ed676034 (patch)
treebf864d4cbb56327011ed9b8d369791ed0a680e31 /include/asm-ppc64/iSeries/HvCallCfg.h
parent0bc0ffd5f0854b9143606684fb925f4290ae13e7 (diff)
downloadtalos-op-linux-dd61ce922770b299081c3e729ea65758ed676034.tar.gz
talos-op-linux-dd61ce922770b299081c3e729ea65758ed676034.zip
[PATCH] ppc64 iSeries: eliminate some unused inline functions
This patch removes from the iSeries header files a large number of inline functions that are not used. It also changes the only caller of a HvCallCfg function that is outside HvLpConfig.h to its equivalent HvLpConfig function and no longer includes HvCallCfg.h where it is not needed. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ppc64/iSeries/HvCallCfg.h')
-rw-r--r--include/asm-ppc64/iSeries/HvCallCfg.h53
1 files changed, 2 insertions, 51 deletions
diff --git a/include/asm-ppc64/iSeries/HvCallCfg.h b/include/asm-ppc64/iSeries/HvCallCfg.h
index aa491c3ad0a2..ddf2bb59d73c 100644
--- a/include/asm-ppc64/iSeries/HvCallCfg.h
+++ b/include/asm-ppc64/iSeries/HvCallCfg.h
@@ -67,31 +67,11 @@ enum HvCallCfg_ReqQual {
#define HvCallCfgGetLpExecutionMode HvCallCfg + 31
#define HvCallCfgGetHostingLpIndex HvCallCfg + 32
-static inline HvLpIndex HvCallCfg_getLps(void)
-{
- return HvCall0(HvCallCfgGetLps);
-}
-
-static inline int HvCallCfg_isBusDedicated(u64 busIndex)
-{
- return HvCall1(HvCallCfgIsBusDedicated, busIndex);
-}
-
static inline HvLpIndex HvCallCfg_getBusOwner(u64 busIndex)
{
return HvCall1(HvCallCfgGetBusOwner, busIndex);
}
-static inline HvLpIndexMap HvCallCfg_getBusAllocation(u64 busIndex)
-{
- return HvCall1(HvCallCfgGetBusAllocation, busIndex);
-}
-
-static inline HvLpIndexMap HvCallCfg_getActiveLpMap(void)
-{
- return HvCall0(HvCallCfgGetActiveLpMap);
-}
-
static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap(
HvLpIndex lp)
{
@@ -105,31 +85,12 @@ static inline HvLpVirtualLanIndexMap HvCallCfg_getVirtualLanIndexMap(
return retVal;
}
-static inline u64 HvCallCfg_getSystemMsChunks(void)
-{
- return HvCall0(HvCallCfgGetSystemMsChunks);
-}
-
static inline u64 HvCallCfg_getMsChunks(HvLpIndex lp,
enum HvCallCfg_ReqQual qual)
{
return HvCall2(HvCallCfgGetMsChunks, lp, qual);
}
-static inline u64 HvCallCfg_getMinRuntimeMsChunks(HvLpIndex lp)
-{
- /*
- * NOTE: This function was added in v5r1 so older hypervisors
- * will return a -1 value
- */
- return HvCall1(HvCallCfgGetMinRuntimeMsChunks, lp);
-}
-
-static inline u64 HvCallCfg_setMinRuntimeMsChunks(u64 chunks)
-{
- return HvCall1(HvCallCfgSetMinRuntimeMsChunks, chunks);
-}
-
static inline u64 HvCallCfg_getSystemPhysicalProcessors(void)
{
return HvCall0(HvCallCfgGetSystemPhysicalProcessors);
@@ -141,14 +102,6 @@ static inline u64 HvCallCfg_getPhysicalProcessors(HvLpIndex lp,
return HvCall2(HvCallCfgGetPhysicalProcessors, lp, qual);
}
-static inline u64 HvCallCfg_getConfiguredBusUnitsForInterruptProc(HvLpIndex lp,
- u16 hvLogicalProcIndex)
-{
- return HvCall2(HvCallCfgGetConfiguredBusUnitsForIntProc, lp,
- hvLogicalProcIndex);
-
-}
-
static inline HvLpSharedPoolIndex HvCallCfg_getSharedPoolIndex(HvLpIndex lp)
{
return HvCall1(HvCallCfgGetSharedPoolIndex, lp);
@@ -164,15 +117,13 @@ static inline u64 HvCallCfg_getSharedProcUnits(HvLpIndex lp,
static inline u64 HvCallCfg_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI)
{
- u16 retVal = HvCall1(HvCallCfgGetNumProcsInSharedPool, sPI);
- return retVal;
+ return (u16)HvCall1(HvCallCfgGetNumProcsInSharedPool, sPI);
}
static inline HvLpIndex HvCallCfg_getHostingLpIndex(HvLpIndex lp)
{
- u64 retVal = HvCall1(HvCallCfgGetHostingLpIndex, lp);
- return retVal;
+ return HvCall1(HvCallCfgGetHostingLpIndex, lp);
}
#endif /* _HVCALLCFG_H */
OpenPOWER on IntegriCloud