Re: [PATCH] Add rdc321x defconfig file

From: Ingo Molnar
Date: Mon Feb 25 2008 - 06:55:28 EST



* Adrian Bunk <bunk@xxxxxxxxxx> wrote:

> On Mon, Feb 25, 2008 at 12:27:34PM +0100, Florian Fainelli wrote:
> > Le lundi 25 février 2008, Adrian Bunk a écrit :
> > > Booting it might fine, but CLOCK_TICK_RATE will be wrong...
> >
> > PIT_TICK_RATE is overriden specificaly for R321x in
> > include/asm-x86/timex.h, just like for AMD Elan.
>
> Not when you try CONFIG_X86_GENERICARCH=y as Ingo suggested.

good point.

The clean solution would be to make PIT_TICK_RATE/CLOCK_TICK_RATE a
variable that defaults to 1193182 on x86, and which an early quirk would
set to 1189200 on AMD Elan and to 1041667 on RDC321X.

likewise, other subarch details should be turned into specific drivers
or specific quirks as well.

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