Date: Mon, 27 Oct 2008 21:45:18 +0000 (UTC) From: Maxim Sobolev <sobomax@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184378 - head/sys/amd64/amd64 Message-ID: <200810272145.m9RLjIZN054080@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sobomax Date: Mon Oct 27 21:45:18 2008 New Revision: 184378 URL: http://svn.freebsd.org/changeset/base/184378 Log: 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. Modified: head/sys/amd64/amd64/local_apic.c Modified: head/sys/amd64/amd64/local_apic.c ============================================================================== --- head/sys/amd64/amd64/local_apic.c Mon Oct 27 21:41:55 2008 (r184377) +++ head/sys/amd64/amd64/local_apic.c Mon Oct 27 21:45:18 2008 (r184378) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810272145.m9RLjIZN054080>