diff options
author | Zhi-zhou Zhang <zhizhou.zh@gmail.com> | 2012-11-24 05:07:13 +0000 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2012-11-25 21:50:43 +0100 |
commit | 8ab36d2e5490ea7bd5a39fd65210533a6c478e28 (patch) | |
tree | ddf367ef00dac396c96c8ae44337aa2df833b837 /arch/mips/cpu/mips32 | |
parent | 178d0cc1a4c73c3341afbeb2a93b172de8c96bd1 (diff) | |
download | u-boot-imx-8ab36d2e5490ea7bd5a39fd65210533a6c478e28.zip u-boot-imx-8ab36d2e5490ea7bd5a39fd65210533a6c478e28.tar.gz u-boot-imx-8ab36d2e5490ea7bd5a39fd65210533a6c478e28.tar.bz2 |
MIPS: do not initialize timestamp variable before relocate_code
Because timestamp is declared as `static', we needn't initialize
it by writing it a zero. If we do it before relocate_code, we
will write into a flash address(0xffffffffbfc0xxxx).
Signed-off-by: Zhi-zhou Zhang <zhizhou.zh@gmail.com>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/cpu/mips32')
-rw-r--r-- | arch/mips/cpu/mips32/time.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/mips/cpu/mips32/time.c b/arch/mips/cpu/mips32/time.c index 350896a..09fc842 100644 --- a/arch/mips/cpu/mips32/time.c +++ b/arch/mips/cpu/mips32/time.c @@ -36,7 +36,6 @@ static unsigned long timestamp; int timer_init(void) { /* Set up the timer for the first expiration. */ - timestamp = 0; write_c0_compare(read_c0_count() + CYCLES_PER_JIFFY); return 0; |