summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2008-10-27 21:45:18 +0000
committersobomax <sobomax@FreeBSD.org>2008-10-27 21:45:18 +0000
commitc68ec05f2d98772f60b7f48f191e7fc7e4bf8c80 (patch)
tree6b028b8959e459799027c7726983ef0907111042
parentc343bee7436265dcfcb210432bf638260b9cc73b (diff)
downloadFreeBSD-src-c68ec05f2d98772f60b7f48f191e7fc7e4bf8c80.zip
FreeBSD-src-c68ec05f2d98772f60b7f48f191e7fc7e4bf8c80.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/amd64/amd64/local_apic.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/amd64/amd64/local_apic.c b/sys/amd64/amd64/local_apic.c
index 30ab41f..db916d8 100644
--- a/sys/amd64/amd64/local_apic.c
+++ b/sys/amd64/amd64/local_apic.c
@@ -401,11 +401,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