6 #include <machine/inline.h>
8 long long cpucycles_hppapstat(void)
10 register long long result
;
15 long long cpucycles_hppapstat_persecond(void)
17 struct pst_processor pst
;
21 pu
.pst_processor
= &pst
;
22 if (pstat(PSTAT_PROCESSOR
,pu
,sizeof(pst
),1,0) < 0) return 0;
23 result
= pst
.psp_iticksperclktick
;
24 result
*= (double) sysconf(_SC_CLK_TCK
);