aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/iSeries/HvLpConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/iSeries/HvLpConfig.h')
-rw-r--r--include/asm-ppc64/iSeries/HvLpConfig.h188
1 files changed, 0 insertions, 188 deletions
diff --git a/include/asm-ppc64/iSeries/HvLpConfig.h b/include/asm-ppc64/iSeries/HvLpConfig.h
index 9411b5a04d00..78d68281cc8b 100644
--- a/include/asm-ppc64/iSeries/HvLpConfig.h
+++ b/include/asm-ppc64/iSeries/HvLpConfig.h
@@ -40,127 +40,16 @@ static inline HvLpIndex HvLpConfig_getPrimaryLpIndex(void)
40 return itLpNaca.xPrimaryLpIndex; 40 return itLpNaca.xPrimaryLpIndex;
41} 41}
42 42
43static inline HvLpIndex HvLpConfig_getLps(void)
44{
45 return HvCallCfg_getLps();
46}
47
48static inline HvLpIndexMap HvLpConfig_getActiveLpMap(void)
49{
50 return HvCallCfg_getActiveLpMap();
51}
52
53static inline u64 HvLpConfig_getSystemMsMegs(void)
54{
55 return HvCallCfg_getSystemMsChunks() / HVCHUNKSPERMEG;
56}
57
58static inline u64 HvLpConfig_getSystemMsChunks(void)
59{
60 return HvCallCfg_getSystemMsChunks();
61}
62
63static inline u64 HvLpConfig_getSystemMsPages(void)
64{
65 return HvCallCfg_getSystemMsChunks() * HVPAGESPERCHUNK;
66}
67
68static inline u64 HvLpConfig_getMsMegs(void)
69{
70 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Cur)
71 / HVCHUNKSPERMEG;
72}
73
74static inline u64 HvLpConfig_getMsChunks(void) 43static inline u64 HvLpConfig_getMsChunks(void)
75{ 44{
76 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Cur); 45 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Cur);
77} 46}
78 47
79static inline u64 HvLpConfig_getMsPages(void)
80{
81 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Cur)
82 * HVPAGESPERCHUNK;
83}
84
85static inline u64 HvLpConfig_getMinMsMegs(void)
86{
87 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Min)
88 / HVCHUNKSPERMEG;
89}
90
91static inline u64 HvLpConfig_getMinMsChunks(void)
92{
93 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Min);
94}
95
96static inline u64 HvLpConfig_getMinMsPages(void)
97{
98 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Min)
99 * HVPAGESPERCHUNK;
100}
101
102static inline u64 HvLpConfig_getMinRuntimeMsMegs(void)
103{
104 return HvCallCfg_getMinRuntimeMsChunks(HvLpConfig_getLpIndex())
105 / HVCHUNKSPERMEG;
106}
107
108static inline u64 HvLpConfig_getMinRuntimeMsChunks(void)
109{
110 return HvCallCfg_getMinRuntimeMsChunks(HvLpConfig_getLpIndex());
111}
112
113static inline u64 HvLpConfig_getMinRuntimeMsPages(void)
114{
115 return HvCallCfg_getMinRuntimeMsChunks(HvLpConfig_getLpIndex())
116 * HVPAGESPERCHUNK;
117}
118
119static inline u64 HvLpConfig_getMaxMsMegs(void)
120{
121 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Max)
122 / HVCHUNKSPERMEG;
123}
124
125static inline u64 HvLpConfig_getMaxMsChunks(void)
126{
127 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Max);
128}
129
130static inline u64 HvLpConfig_getMaxMsPages(void)
131{
132 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Max)
133 * HVPAGESPERCHUNK;
134}
135
136static inline u64 HvLpConfig_getInitMsMegs(void)
137{
138 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Init)
139 / HVCHUNKSPERMEG;
140}
141
142static inline u64 HvLpConfig_getInitMsChunks(void)
143{
144 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Init);
145}
146
147static inline u64 HvLpConfig_getInitMsPages(void)
148{
149 return HvCallCfg_getMsChunks(HvLpConfig_getLpIndex(), HvCallCfg_Init)
150 * HVPAGESPERCHUNK;
151}
152
153static inline u64 HvLpConfig_getSystemPhysicalProcessors(void) 48static inline u64 HvLpConfig_getSystemPhysicalProcessors(void)
154{ 49{
155 return HvCallCfg_getSystemPhysicalProcessors(); 50 return HvCallCfg_getSystemPhysicalProcessors();
156} 51}
157 52
158static inline u64 HvLpConfig_getSystemLogicalProcessors(void)
159{
160 return HvCallCfg_getSystemPhysicalProcessors()
161 * (/*getPaca()->getSecondaryThreadCount() +*/ 1);
162}
163
164static inline u64 HvLpConfig_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI) 53static inline u64 HvLpConfig_getNumProcsInSharedPool(HvLpSharedPoolIndex sPI)
165{ 54{
166 return HvCallCfg_getNumProcsInSharedPool(sPI); 55 return HvCallCfg_getNumProcsInSharedPool(sPI);
@@ -172,13 +61,6 @@ static inline u64 HvLpConfig_getPhysicalProcessors(void)
172 HvCallCfg_Cur); 61 HvCallCfg_Cur);
173} 62}
174 63
175static inline u64 HvLpConfig_getLogicalProcessors(void)
176{
177 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
178 HvCallCfg_Cur)
179 * (/*getPaca()->getSecondaryThreadCount() +*/ 1);
180}
181
182static inline HvLpSharedPoolIndex HvLpConfig_getSharedPoolIndex(void) 64static inline HvLpSharedPoolIndex HvLpConfig_getSharedPoolIndex(void)
183{ 65{
184 return HvCallCfg_getSharedPoolIndex(HvLpConfig_getLpIndex()); 66 return HvCallCfg_getSharedPoolIndex(HvLpConfig_getLpIndex());
@@ -190,57 +72,18 @@ static inline u64 HvLpConfig_getSharedProcUnits(void)
190 HvCallCfg_Cur); 72 HvCallCfg_Cur);
191} 73}
192 74
193static inline u64 HvLpConfig_getMinSharedProcUnits(void)
194{
195 return HvCallCfg_getSharedProcUnits(HvLpConfig_getLpIndex(),
196 HvCallCfg_Min);
197}
198
199static inline u64 HvLpConfig_getMaxSharedProcUnits(void) 75static inline u64 HvLpConfig_getMaxSharedProcUnits(void)
200{ 76{
201 return HvCallCfg_getSharedProcUnits(HvLpConfig_getLpIndex(), 77 return HvCallCfg_getSharedProcUnits(HvLpConfig_getLpIndex(),
202 HvCallCfg_Max); 78 HvCallCfg_Max);
203} 79}
204 80
205static inline u64 HvLpConfig_getMinPhysicalProcessors(void)
206{
207 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
208 HvCallCfg_Min);
209}
210
211static inline u64 HvLpConfig_getMinLogicalProcessors(void)
212{
213 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
214 HvCallCfg_Min)
215 * (/*getPaca()->getSecondaryThreadCount() +*/ 1);
216}
217
218static inline u64 HvLpConfig_getMaxPhysicalProcessors(void) 81static inline u64 HvLpConfig_getMaxPhysicalProcessors(void)
219{ 82{
220 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(), 83 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
221 HvCallCfg_Max); 84 HvCallCfg_Max);
222} 85}
223 86
224static inline u64 HvLpConfig_getMaxLogicalProcessors(void)
225{
226 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
227 HvCallCfg_Max)
228 * (/*getPaca()->getSecondaryThreadCount() +*/ 1);
229}
230
231static inline u64 HvLpConfig_getInitPhysicalProcessors(void)
232{
233 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
234 HvCallCfg_Init);
235}
236
237static inline u64 HvLpConfig_getInitLogicalProcessors(void)
238{
239 return HvCallCfg_getPhysicalProcessors(HvLpConfig_getLpIndex(),
240 HvCallCfg_Init)
241 * (/*getPaca()->getSecondaryThreadCount() +*/ 1);
242}
243
244static inline HvLpVirtualLanIndexMap HvLpConfig_getVirtualLanIndexMap(void) 87static inline HvLpVirtualLanIndexMap HvLpConfig_getVirtualLanIndexMap(void)
245{ 88{
246 return HvCallCfg_getVirtualLanIndexMap(HvLpConfig_getLpIndex_outline()); 89 return HvCallCfg_getVirtualLanIndexMap(HvLpConfig_getLpIndex_outline());
@@ -252,37 +95,6 @@ static inline HvLpVirtualLanIndexMap HvLpConfig_getVirtualLanIndexMapForLp(
252 return HvCallCfg_getVirtualLanIndexMap(lp); 95 return HvCallCfg_getVirtualLanIndexMap(lp);
253} 96}
254 97
255static inline HvLpIndex HvLpConfig_getBusOwner(HvBusNumber busNumber)
256{
257 return HvCallCfg_getBusOwner(busNumber);
258}
259
260static inline int HvLpConfig_isBusDedicated(HvBusNumber busNumber)
261{
262 return HvCallCfg_isBusDedicated(busNumber);
263}
264
265static inline HvLpIndexMap HvLpConfig_getBusAllocation(HvBusNumber busNumber)
266{
267 return HvCallCfg_getBusAllocation(busNumber);
268}
269
270/* returns the absolute real address of the load area */
271static inline u64 HvLpConfig_getLoadAddress(void)
272{
273 return itLpNaca.xLoadAreaAddr & 0x7fffffffffffffff;
274}
275
276static inline u64 HvLpConfig_getLoadPages(void)
277{
278 return itLpNaca.xLoadAreaChunks * HVPAGESPERCHUNK;
279}
280
281static inline int HvLpConfig_isBusOwnedByThisLp(HvBusNumber busNumber)
282{
283 return (HvLpConfig_getBusOwner(busNumber) == HvLpConfig_getLpIndex());
284}
285
286static inline int HvLpConfig_doLpsCommunicateOnVirtualLan(HvLpIndex lp1, 98static inline int HvLpConfig_doLpsCommunicateOnVirtualLan(HvLpIndex lp1,
287 HvLpIndex lp2) 99 HvLpIndex lp2)
288{ 100{