diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-01-06 00:38:35 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-01-06 00:38:35 +0000 |
commit | de09ec92e6a7d9ef8a19d57ce7da4d75f535ef68 (patch) | |
tree | 04b89b395d134add982a42dc9354ce14897b9cb5 | |
parent | e7e21ec66307a32925eab004aa2a46a694ea2ac6 (diff) | |
download | src-de09ec92e6a7d9ef8a19d57ce7da4d75f535ef68.tar.gz src-de09ec92e6a7d9ef8a19d57ce7da4d75f535ef68.zip |
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.
Notes
Notes:
svn path=/head/; revision=108751
-rw-r--r-- | sys/ia64/ia64/clock.c | 7 | ||||
-rw-r--r-- | sys/ia64/ia64/interrupt.c | 3 | ||||
-rw-r--r-- | sys/ia64/include/clock.h | 1 |
3 files changed, 2 insertions, 9 deletions
diff --git a/sys/ia64/ia64/clock.c b/sys/ia64/ia64/clock.c index c3615bf5438a..06c96c33fa27 100644 --- a/sys/ia64/ia64/clock.c +++ b/sys/ia64/ia64/clock.c @@ -254,13 +254,6 @@ fail: } #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 diff --git a/sys/ia64/ia64/interrupt.c b/sys/ia64/ia64/interrupt.c index cb051a926e9e..d59b4bcdec80 100644 --- a/sys/ia64/ia64/interrupt.c +++ b/sys/ia64/ia64/interrupt.c @@ -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); diff --git a/sys/ia64/include/clock.h b/sys/ia64/include/clock.h index 08892398ffbc..65673c086b53 100644 --- a/sys/ia64/include/clock.h +++ b/sys/ia64/include/clock.h @@ -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 |