diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-04 23:32:09 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-04 23:32:09 +0300 |
commit | d4d3b19212a1045ff8224e680375076b3677ede7 (patch) | |
tree | a6ef0044ca7afbc3ddb631a2e158cc8a3b7ba7ba /arch/sh/include/asm/timex.h | |
parent | e43c259777999d19532cf418ca69ce1288b42edc (diff) | |
parent | 2f48912d1443a796f10c42c89cb386f0e3eca04d (diff) | |
download | linux-d4d3b19212a1045ff8224e680375076b3677ede7.tar.xz |
Merge branch 'sh/for-2.6.33' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* 'sh/for-2.6.33' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
binfmt_elf_fdpic: Fix build breakage introduced by coredump changes.
sh: update defconfigs.
sh: Don't default enable PMB support.
sh: Disable PMB for SH4AL-DSP CPUs.
sh: Only provide a PCLK definition for legacy CPG CPUs.
Diffstat (limited to 'arch/sh/include/asm/timex.h')
-rw-r--r-- | arch/sh/include/asm/timex.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/include/asm/timex.h b/arch/sh/include/asm/timex.h index b556d49e5f2b..18bf06d9c764 100644 --- a/arch/sh/include/asm/timex.h +++ b/arch/sh/include/asm/timex.h @@ -6,7 +6,17 @@ #ifndef __ASM_SH_TIMEX_H #define __ASM_SH_TIMEX_H +/* + * Only parts using the legacy CPG code for their clock framework + * implementation need to define their own Pclk value. If provided, this + * can be used for accurately setting CLOCK_TICK_RATE, otherwise we + * simply fall back on the i8253 PIT value. + */ +#ifdef CONFIG_SH_PCLK_FREQ #define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* Underlying HZ */ +#else +#define CLOCK_TICK_RATE 1193180 +#endif #include <asm-generic/timex.h> |