From 1e32aa137d72d99922585b4ac33609aa1a09b782 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 28 Mar 2006 21:20:12 +0000 Subject: Use the read_cycle_count() function recently added for cpu_ticks() for get_cyclecount() as that results in a saner value and makes schedgraph much happier on Alpha. (schedgraph doesn't handle the fact that the counters are out of sync though) --- sys/alpha/include/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/alpha/include/cpu.h') diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h index a7a6a94..92a6a4e 100644 --- a/sys/alpha/include/cpu.h +++ b/sys/alpha/include/cpu.h @@ -88,11 +88,12 @@ extern char etext[]; #define cpu_getstack(td) (alpha_pal_rdusp()) #define cpu_spinwait() /* nothing */ -#define get_cyclecount alpha_rpcc +#define get_cyclecount() read_cycle_count() void cpu_halt(void); void cpu_reset(void); void fork_trampoline(void); /* MAGIC */ +uint64_t read_cycle_count(void); void swi_vm(void *); #endif /* _KERNEL */ -- cgit v1.1