aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/plpar_wrappers.h')
-rw-r--r--arch/powerpc/include/asm/plpar_wrappers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/plpar_wrappers.h b/arch/powerpc/include/asm/plpar_wrappers.h
index 67859edbf8fd..6e05cb397a5c 100644
--- a/arch/powerpc/include/asm/plpar_wrappers.h
+++ b/arch/powerpc/include/asm/plpar_wrappers.h
@@ -323,4 +323,18 @@ static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawr
323 return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR, dawr0, dawrx0); 323 return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR, dawr0, dawrx0);
324} 324}
325 325
326static inline long plpar_get_cpu_characteristics(struct h_cpu_char_result *p)
327{
328 unsigned long retbuf[PLPAR_HCALL_BUFSIZE];
329 long rc;
330
331 rc = plpar_hcall(H_GET_CPU_CHARACTERISTICS, retbuf);
332 if (rc == H_SUCCESS) {
333 p->character = retbuf[0];
334 p->behaviour = retbuf[1];
335 }
336
337 return rc;
338}
339
326#endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */ 340#endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */