[POWERPC] iseries: Make HvLpConfig_get(Primary)LpIndex functions

HvLpConfig_get(Primary)LpIndex are currently static inlines that return
fields from the itLpNaca, if we make them real functions we can make the
itLpNaca private to iSeries.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
This commit is contained in:
Michael Ellerman 2006-07-13 17:52:12 +10:00 committed by Stephen Rothwell
parent c59acae854
commit a2ced11b6a
3 changed files with 16 additions and 11 deletions

View File

@ -18,9 +18,22 @@
#include <linux/module.h> #include <linux/module.h>
#include <asm/iseries/hv_lp_config.h> #include <asm/iseries/hv_lp_config.h>
#include <asm/iseries/it_lp_naca.h>
HvLpIndex HvLpConfig_getLpIndex_outline(void) HvLpIndex HvLpConfig_getLpIndex_outline(void)
{ {
return HvLpConfig_getLpIndex(); return HvLpConfig_getLpIndex();
} }
EXPORT_SYMBOL(HvLpConfig_getLpIndex_outline); EXPORT_SYMBOL(HvLpConfig_getLpIndex_outline);
HvLpIndex HvLpConfig_getLpIndex(void)
{
return itLpNaca.xLpIndex;
}
EXPORT_SYMBOL(HvLpConfig_getLpIndex);
HvLpIndex HvLpConfig_getPrimaryLpIndex(void)
{
return itLpNaca.xPrimaryLpIndex;
}
EXPORT_SYMBOL_GPL(HvLpConfig_getPrimaryLpIndex);

View File

@ -48,6 +48,7 @@
#include <asm/iseries/hv_call_event.h> #include <asm/iseries/hv_call_event.h>
#include <asm/iseries/hv_call_xm.h> #include <asm/iseries/hv_call_xm.h>
#include <asm/iseries/it_lp_queue.h> #include <asm/iseries/it_lp_queue.h>
#include <asm/iseries/it_lp_naca.h>
#include <asm/iseries/mf.h> #include <asm/iseries/mf.h>
#include <asm/iseries/hv_lp_event.h> #include <asm/iseries/hv_lp_event.h>
#include <asm/iseries/lpar_map.h> #include <asm/iseries/lpar_map.h>

View File

@ -25,7 +25,6 @@
#include <asm/iseries/hv_call_sc.h> #include <asm/iseries/hv_call_sc.h>
#include <asm/iseries/hv_types.h> #include <asm/iseries/hv_types.h>
#include <asm/iseries/it_lp_naca.h>
enum { enum {
HvCallCfg_Cur = 0, HvCallCfg_Cur = 0,
@ -44,16 +43,8 @@ enum {
#define HvCallCfgGetHostingLpIndex HvCallCfg + 32 #define HvCallCfgGetHostingLpIndex HvCallCfg + 32
extern HvLpIndex HvLpConfig_getLpIndex_outline(void); extern HvLpIndex HvLpConfig_getLpIndex_outline(void);
extern HvLpIndex HvLpConfig_getLpIndex(void);
static inline HvLpIndex HvLpConfig_getLpIndex(void) extern HvLpIndex HvLpConfig_getPrimaryLpIndex(void);
{
return itLpNaca.xLpIndex;
}
static inline HvLpIndex HvLpConfig_getPrimaryLpIndex(void)
{
return itLpNaca.xPrimaryLpIndex;
}
static inline u64 HvLpConfig_getMsChunks(void) static inline u64 HvLpConfig_getMsChunks(void)
{ {