Skip to content
Commit a18a4771 authored by Thomas Langer's avatar Thomas Langer Committed by Daniel Schwierzeck
Browse files

MIPS: use common code from lib/time.c



The common code just needs the C0_COUNT as free running counter,
without the need of writing and checking C0_COMPARE.

The function get_tbclk() is still implemented here instead of changing
all places of CONFIG_SYS_MIPS_TIMER_FREQ to CONFIG_SYS_TIMER_RATE.

The change was tested on a MIPS32 system, but as the MIPS64 code
was/is the same, this should be no problem.

Signed-off-by: default avatarThomas Langer <thomas.langer@lantiq.com>
parent e13a50b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment