Date: Wed, 16 Mar 2011 16:44:08 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219700 - head/sys/x86/x86 Message-ID: <201103161644.p2GGi8ug098283@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Wed Mar 16 16:44:08 2011 New Revision: 219700 URL: http://svn.freebsd.org/changeset/base/219700 Log: Revert r219676. Requested by: jhb, bde Modified: head/sys/x86/x86/tsc.c Modified: head/sys/x86/x86/tsc.c ============================================================================== --- head/sys/x86/x86/tsc.c Wed Mar 16 16:22:59 2011 (r219699) +++ head/sys/x86/x86/tsc.c Wed Mar 16 16:44:08 2011 (r219700) @@ -263,10 +263,12 @@ sysctl_machdep_tsc_freq(SYSCTL_HANDLER_A if (tsc_timecounter.tc_frequency == 0) return (EOPNOTSUPP); - freq = tsc_timecounter.tc_frequency; + freq = tsc_freq; error = sysctl_handle_64(oidp, &freq, 0, req); - if (error == 0 && req->newptr != NULL) - tsc_timecounter.tc_frequency = freq; + if (error == 0 && req->newptr != NULL) { + tsc_freq = freq; + tsc_timecounter.tc_frequency = tsc_freq; + } return (error); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103161644.p2GGi8ug098283>