[PATCH v5 1/4] ARM: deprecate mach/timex.h for !ARCH_MULTIPLATFORM
Linus Walleij
linus.walleij at linaro.org
Tue Nov 5 06:37:50 EST 2013
On Tue, Nov 5, 2013 at 12:34 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> Maybe we can collapse the CLOCK_TICK_RATE into a single Kconfig symbol
> like
>
> asm/timex.h:
>
> #ifdef CONFIG_CLOCK_TICK_RATE
> #define CLOCK_TICK_RATE CONFIG_CLOCK_TICK_RATE
> #endif
> /* EOF */
>
> Kconfig:
>
> config CLOCK_TICK_RATE
> int
> depends on !ARCH_MULTIPLATFORM && ARCH_USES_GETTIMEOFFSET
> depends on ARCH_GEMINI || ARCH_SA1100 || ARCH_EBSA110 || ARCH_EP93XX || ARCH_RPC || ARCH_AT91X40
> default 40000000 if ARCH_AT91X40
> default 38000000 if ARCH_GEMINI
> default 3686400 if ARCH_SA1100
> default 47894000 if ARCH_EBSA110
> default 983040 if ARCH_EP93xx
> default 2000000 if ARCH_RPC
> # don't even think about adding more to this list, better get rid of the
> # existing ones by converting them to proper clocksources
+1 for this approach, since we already use this pattern for
other things.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list