*SPAM* Re: kernel 2.6.23-rc6 hangs on Geode GX1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux