mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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)
This commit is contained in:
parent
2445cd7c11
commit
40ad471f8e
2 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,6 @@ static u_char timer2_state;
|
|||
static void calibrate_clocks(u_int32_t firmware_freq, u_int32_t *pcc,
|
||||
u_int32_t *timer);
|
||||
static void set_timer_freq(u_int freq, int intr_freq);
|
||||
static uint64_t read_cycle_count(void);
|
||||
|
||||
void
|
||||
clockattach(device_t dev)
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue