summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2008-10-27 21:06:16 +0000
committersobomax <sobomax@FreeBSD.org>2008-10-27 21:06:16 +0000
commit7c6a907af76b26dc8d48b996824f7173c6ccb4e6 (patch)
tree95d5f5adf6da148f6ab6406684c80c4325270529
parent09af0f0e3398eacef75040fcc9796fe7427081fc (diff)
downloadFreeBSD-src-7c6a907af76b26dc8d48b996824f7173c6ccb4e6.zip
FreeBSD-src-7c6a907af76b26dc8d48b996824f7173c6ccb4e6.tar.gz
Fix r184323 - set stathz to be the same as lapic_timer_hz when lapic_timer_hz
is less than 128. Remove extra {} to match existing style.
-rw-r--r--sys/i386/i386/local_apic.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/i386/i386/local_apic.c b/sys/i386/i386/local_apic.c
index efc129a..b251fe8c 100644
--- a/sys/i386/i386/local_apic.c
+++ b/sys/i386/i386/local_apic.c
@@ -403,11 +403,10 @@ lapic_setup_clock(void)
lapic_timer_hz = hz * 2;
else
lapic_timer_hz = hz * 4;
- if (lapic_timer_hz < 128) {
- stathz = 128;
- } else {
+ if (lapic_timer_hz < 128)
+ stathz = lapic_timer_hz;
+ else
stathz = lapic_timer_hz / (lapic_timer_hz / 128);
- }
profhz = lapic_timer_hz;
lapic_timer_period = value / lapic_timer_hz;
OpenPOWER on IntegriCloud