Implement CLKF_USERMODE so that user time is accounted properly.

Submitted by:	tmm
This commit is contained in:
Jake Burkholder 2001-12-29 06:51:14 +00:00
parent 812a805e24
commit 7bb428295f

View File

@ -44,7 +44,7 @@
#include <machine/frame.h>
#include <machine/tstate.h>
#define CLKF_USERMODE(cfp) (0)
#define CLKF_USERMODE(cfp) TRAPF_USERMODE(&(cfp)->cf_tf)
#define CLKF_PC(cfp) ((cfp)->cf_tf.tf_tpc)
#define TRAPF_PC(tfp) ((tfp)->tf_tpc)
@ -80,7 +80,7 @@ static __inline u_int64_t
get_cyclecount(void)
{
return (rdpr(tick));
return (rd(tick));
}
#endif