diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/hvcall.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/asm-powerpc/hvcall.h b/include/asm-powerpc/hvcall.h index 63ce1ac8c1f4..257d1cecb8c9 100644 --- a/include/asm-powerpc/hvcall.h +++ b/include/asm-powerpc/hvcall.h | |||
@@ -208,7 +208,7 @@ | |||
208 | #define H_JOIN 0x298 | 208 | #define H_JOIN 0x298 |
209 | #define H_VASI_STATE 0x2A4 | 209 | #define H_VASI_STATE 0x2A4 |
210 | #define H_ENABLE_CRQ 0x2B0 | 210 | #define H_ENABLE_CRQ 0x2B0 |
211 | #define MAX_HCALL_OPCODES (H_ENABLE_CRQ >> 2) | 211 | #define MAX_HCALL_OPCODE H_ENABLE_CRQ |
212 | 212 | ||
213 | #ifndef __ASSEMBLY__ | 213 | #ifndef __ASSEMBLY__ |
214 | 214 | ||
@@ -246,6 +246,16 @@ long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...); | |||
246 | #define PLPAR_HCALL9_BUFSIZE 9 | 246 | #define PLPAR_HCALL9_BUFSIZE 9 |
247 | long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...); | 247 | long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...); |
248 | 248 | ||
249 | /* For hcall instrumentation. One structure per-hcall, per-CPU */ | ||
250 | struct hcall_stats { | ||
251 | unsigned long num_calls; /* number of calls (on this CPU) */ | ||
252 | unsigned long tb_total; /* total wall time (mftb) of calls. */ | ||
253 | unsigned long purr_total; /* total cpu time (PURR) of calls. */ | ||
254 | }; | ||
255 | void update_hcall_stats(unsigned long opcode, unsigned long tb_delta, | ||
256 | unsigned long purr_delta); | ||
257 | #define HCALL_STAT_ARRAY_SIZE ((MAX_HCALL_OPCODE >> 2) + 1) | ||
258 | |||
249 | #endif /* __ASSEMBLY__ */ | 259 | #endif /* __ASSEMBLY__ */ |
250 | #endif /* __KERNEL__ */ | 260 | #endif /* __KERNEL__ */ |
251 | #endif /* _ASM_POWERPC_HVCALL_H */ | 261 | #endif /* _ASM_POWERPC_HVCALL_H */ |