diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2008-03-27 22:05:57 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-04-28 17:14:27 +0100 |
commit | eba8291b514e6e590be161afcbfdab58cc5da6b8 (patch) | |
tree | 47d1b31417991d82834cba2c19a6bebb32f7e7b2 /arch/mips/au1000/common/dbg_io.c | |
parent | 0167509574ef1cdb516906db5e8b6ad5ca64ab61 (diff) | |
download | kernel-crypto-eba8291b514e6e590be161afcbfdab58cc5da6b8.tar.gz kernel-crypto-eba8291b514e6e590be161afcbfdab58cc5da6b8.tar.xz kernel-crypto-eba8291b514e6e590be161afcbfdab58cc5da6b8.zip |
[MIPS] Alchemy: kill useless time variables
Since the commit 91a2fcc88634663e9e13dcdfad0e4a860e64aeee ([MIPS]
Consolidate all variants of MIPS cp0 timer interrupt handlers) removed the
Alchemy specific timer handler, 'r4k_offset' and 'r4k_cur' variables became
practically useless, so get rid of them at last, renaming cal_r4off()
function into calc_clock() and making it return CPU frequency. Also, make
'no_au1xxx_32khz' variable static...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000/common/dbg_io.c')
-rw-r--r-- | arch/mips/au1000/common/dbg_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/au1000/common/dbg_io.c b/arch/mips/au1000/common/dbg_io.c index 79e0b0a51ac..12f5458142a 100644 --- a/arch/mips/au1000/common/dbg_io.c +++ b/arch/mips/au1000/common/dbg_io.c @@ -56,7 +56,7 @@ typedef unsigned int uint32; #define UART16550_WRITE(y, z) (au_writel(z&0xff, DEBUG_BASE + y)) extern unsigned long get_au1x00_uart_baud_base(void); -extern unsigned long cal_r4koff(void); +extern unsigned long calc_clock(void); void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) { @@ -64,7 +64,7 @@ void debugInit(uint32 baud, uint8 data, uint8 parity, uint8 stop) if (UART16550_READ(UART_MOD_CNTRL) != 0x3) { UART16550_WRITE(UART_MOD_CNTRL, 3); } - cal_r4koff(); + calc_clock(); /* disable interrupts */ UART16550_WRITE(UART_IER, 0); |