Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8f597acab2742b7ae9a556613c389ffa914cdbbd Commit: 8f597acab2742b7ae9a556613c389ffa914cdbbd Parent: 6fec2e1727049ce6a404f4af61461d860594d5db Author: Ralf Baechle <[EMAIL PROTECTED]> AuthorDate: Fri Jul 13 06:42:36 2007 +0100 Committer: Ralf Baechle <[EMAIL PROTECTED]> CommitDate: Fri Jul 13 17:40:00 2007 +0100
[MIPS] Alchemy: Remove code wrapped by dead symbol CONFIG_AU1000_USE32K Noticed by Robert P. J. Day ([EMAIL PROTECTED]). Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]> --- arch/mips/au1000/common/time.c | 25 ------------------------- 1 files changed, 0 insertions(+), 25 deletions(-) diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c index fa1c62f..1dba3f7 100644 --- a/arch/mips/au1000/common/time.c +++ b/arch/mips/au1000/common/time.c @@ -247,33 +247,8 @@ unsigned long cal_r4koff(void) au_writel (0, SYS_TOYWRITE); while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C1S); -#if defined(CONFIG_AU1000_USE32K) - { - unsigned long start, end, count; - - start = au_readl(SYS_RTCREAD); - start += 2; - /* wait for the beginning of a new tick - */ - while (au_readl(SYS_RTCREAD) < start); - - /* Start r4k counter. - */ - write_c0_count(0); - - /* Wait 0.5 seconds. - */ - end = start + (32768 / trim_divide)/2; - - while (end > au_readl(SYS_RTCREAD)); - - count = read_c0_count(); - cpu_speed = count * 2; - } -#else cpu_speed = (au_readl(SYS_CPUPLL) & 0x0000003f) * AU1000_SRC_CLK; -#endif } else { /* The 32KHz oscillator isn't running, so assume there - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html