lkml.org 
[lkml]   [2007]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject*SPAM* Re: kernel 2.6.23-rc6 hangs on Geode GX1
Date
On Thursday 27 September 2007 18:13, Juergen Beisert wrote:
> Index: linux-2.6.22/arch/i386/kernel/cpu/cyrix.c
> ===================================================================
> --- linux-2.6.22.orig/arch/i386/kernel/cpu/cyrix.c
> +++ linux-2.6.22/arch/i386/kernel/cpu/cyrix.c
> @@ -169,7 +169,7 @@ static void __cpuinit set_cx86_inc(void)
> setCx86(CX86_PCR1, getCx86(CX86_PCR1) | 0x02);
> /* PCR0 -- Performance Control */
> /* Incrementor Margin 10 */
> - setCx86(CX86_PCR0, getCx86(CX86_PCR0) | 0x04);
> + setCx86(CX86_PCR0, getCx86(CX86_PCR0) | 0x05); /* 300MHz CPU */
> setCx86(CX86_CCR3, ccr3); /* disable MAPEN */
> }
>
> This should be done at runtime in relation to the real CPU clock.

Has someone an idea how I can read back CPUs clock while I'm in
arch/i386/kernel/cpu/cyrix.c:set_cx86_inc() ? This incrementer setting must
be done in relation to processor's clock. We could remove this tweaking as
Marco suggested, or we must fix it to use the correct value.

Juergen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-28 10:37    [W:0.043 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site