mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 01:34:09 +00:00
Manually inline handleclock(). There's only a single caller and
handleclock itself is trivial. While here, replace (itc_frequency+hz/2)/hz with itm_reload for consistency. There's now a single place where we determine the ITM reload value.
This commit is contained in:
parent
e7e21ec663
commit
de09ec92e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108751
|
@ -254,13 +254,6 @@ calibrate_clocks(u_int32_t firmware_freq)
|
|||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
handleclock(void* arg)
|
||||
{
|
||||
ia64_set_itm(ia64_get_itc() + (itc_frequency + hz/2) / hz);
|
||||
hardclock(arg);
|
||||
}
|
||||
|
||||
/*
|
||||
* We assume newhz is either stathz or profhz, and that neither will
|
||||
* change after being set up above. Could recalculate intervals here
|
||||
|
|
|
@ -128,7 +128,8 @@ interrupt(u_int64_t vector, struct trapframe *framep)
|
|||
/* Only the BSP runs the real clock */
|
||||
if (PCPU_GET(cpuid) == 0) {
|
||||
#endif
|
||||
handleclock(framep);
|
||||
ia64_set_itm(ia64_get_itc() + itm_reload);
|
||||
hardclock((struct clockframe *)framep);
|
||||
/* divide hz (1024) by 8 to get stathz (128) */
|
||||
if ((++schedclk2 & 0x7) == 0)
|
||||
statclock((struct clockframe *)framep);
|
||||
|
|
|
@ -21,7 +21,6 @@ extern u_int64_t itm_reload;
|
|||
int sysbeep(int pitch, int period);
|
||||
int acquire_timer2(int mode);
|
||||
int release_timer2(void);
|
||||
void handleclock(void *arg);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue