mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
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:
parent
4d49064704
commit
a3f027fa56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184372
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user