Timer: Remove reset_timer() for non-Nios2 arches
This commit is contained in:
committed by
Wolfgang Denk
parent
e110c4fe44
commit
4769be21cc
@@ -95,11 +95,6 @@ void timer_init(void)
|
||||
timerp->cr = SLT_CR_RUN | SLT_CR_IEN | SLT_CR_TEN;
|
||||
}
|
||||
|
||||
void reset_timer(void)
|
||||
{
|
||||
timestamp = 0;
|
||||
}
|
||||
|
||||
ulong get_timer(ulong base)
|
||||
{
|
||||
return (timestamp - base);
|
||||
|
||||
@@ -116,11 +116,6 @@ void timer_init(void)
|
||||
DTIM_DTMR_FRR | DTIM_DTMR_ORRI | DTIM_DTMR_RST_EN;
|
||||
}
|
||||
|
||||
void reset_timer(void)
|
||||
{
|
||||
timestamp = 0;
|
||||
}
|
||||
|
||||
ulong get_timer(ulong base)
|
||||
{
|
||||
return (timestamp - base);
|
||||
|
||||
Reference in New Issue
Block a user