Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Michael Ellerman and committed by
Stephen Rothwell
a2ced11b c59acae8

+16 -11
+13
arch/powerpc/platforms/iseries/hvlpconfig.c
··· 18 18 19 19 #include <linux/module.h> 20 20 #include <asm/iseries/hv_lp_config.h> 21 + #include <asm/iseries/it_lp_naca.h> 21 22 22 23 HvLpIndex HvLpConfig_getLpIndex_outline(void) 23 24 { 24 25 return HvLpConfig_getLpIndex(); 25 26 } 26 27 EXPORT_SYMBOL(HvLpConfig_getLpIndex_outline); 28 + 29 + HvLpIndex HvLpConfig_getLpIndex(void) 30 + { 31 + return itLpNaca.xLpIndex; 32 + } 33 + EXPORT_SYMBOL(HvLpConfig_getLpIndex); 34 + 35 + HvLpIndex HvLpConfig_getPrimaryLpIndex(void) 36 + { 37 + return itLpNaca.xPrimaryLpIndex; 38 + } 39 + EXPORT_SYMBOL_GPL(HvLpConfig_getPrimaryLpIndex);
+1
arch/powerpc/platforms/iseries/setup.c
··· 48 48 #include <asm/iseries/hv_call_event.h> 49 49 #include <asm/iseries/hv_call_xm.h> 50 50 #include <asm/iseries/it_lp_queue.h> 51 + #include <asm/iseries/it_lp_naca.h> 51 52 #include <asm/iseries/mf.h> 52 53 #include <asm/iseries/hv_lp_event.h> 53 54 #include <asm/iseries/lpar_map.h>
+2 -11
include/asm-powerpc/iseries/hv_lp_config.h
··· 25 25 26 26 #include <asm/iseries/hv_call_sc.h> 27 27 #include <asm/iseries/hv_types.h> 28 - #include <asm/iseries/it_lp_naca.h> 29 28 30 29 enum { 31 30 HvCallCfg_Cur = 0, ··· 43 44 #define HvCallCfgGetHostingLpIndex HvCallCfg + 32 44 45 45 46 extern HvLpIndex HvLpConfig_getLpIndex_outline(void); 46 - 47 - static inline HvLpIndex HvLpConfig_getLpIndex(void) 48 - { 49 - return itLpNaca.xLpIndex; 50 - } 51 - 52 - static inline HvLpIndex HvLpConfig_getPrimaryLpIndex(void) 53 - { 54 - return itLpNaca.xPrimaryLpIndex; 55 - } 47 + extern HvLpIndex HvLpConfig_getLpIndex(void); 48 + extern HvLpIndex HvLpConfig_getPrimaryLpIndex(void); 56 49 57 50 static inline u64 HvLpConfig_getMsChunks(void) 58 51 {