svn commit: r192365 - projects/mips/sys/mips/atheros

M. Warner Losh imp at bsdimp.com
Tue May 19 17:04:05 UTC 2009


In message: <200905190251.n4J2pU1N082603 at svn.freebsd.org>
            Oleksandr Tymoshenko <gonzo at FreeBSD.org> writes:
: Author: gonzo
: Date: Tue May 19 02:51:30 2009
: New Revision: 192365
: URL: http://svn.freebsd.org/changeset/base/192365
: 
: Log:
:   - ar71xx increases Count value every two cycles
: 
: Modified:
:   projects/mips/sys/mips/atheros/ar71xx_machdep.c
: 
: Modified: projects/mips/sys/mips/atheros/ar71xx_machdep.c
: ==============================================================================
: --- projects/mips/sys/mips/atheros/ar71xx_machdep.c	Tue May 19 02:43:21 2009	(r192364)
: +++ projects/mips/sys/mips/atheros/ar71xx_machdep.c	Tue May 19 02:51:30 2009	(r192365)
: @@ -157,7 +157,7 @@ platform_start(__register_t a0 __unused,
:  	div = ((pll_config >> PLL_CPU_DIV_SEL_SHIFT) & PLL_CPU_DIV_SEL_MASK) 
:  	    + 1;
:  	platform_counter_freq = freq / div;
: -	mips_timer_init_params(platform_counter_freq, 0);
: +	mips_timer_init_params(platform_counter_freq, 1);

The second argument is bogus.  This can be determined by one of the
CONFIG registers.

Warner


More information about the svn-src-projects mailing list