summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-01-06 00:38:35 +0000
committermarcel <marcel@FreeBSD.org>2003-01-06 00:38:35 +0000
commit89da141f5e5ea7391b714dcb7e7d77adf59bed2b (patch)
tree04b89b395d134add982a42dc9354ce14897b9cb5 /sys/ia64
parent4b029c13b0ae30aeffa9dbab112c6db24a3ec533 (diff)
downloadFreeBSD-src-89da141f5e5ea7391b714dcb7e7d77adf59bed2b.zip
FreeBSD-src-89da141f5e5ea7391b714dcb7e7d77adf59bed2b.tar.gz
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.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/clock.c7
-rw-r--r--sys/ia64/ia64/interrupt.c3
-rw-r--r--sys/ia64/include/clock.h1
3 files changed, 2 insertions, 9 deletions
diff --git a/sys/ia64/ia64/clock.c b/sys/ia64/ia64/clock.c
index c3615bf..06c96c3 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 cb051a9..d59b4bc 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 0889239..65673c0 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
OpenPOWER on IntegriCloud