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.
This commit is contained in:
Maxim Sobolev 2008-10-27 21:45:18 +00:00
parent a48ac38144
commit f06b09959d

View File

@ -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;