projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
85xx: Cleanup L2 cache size detection
[oweals/u-boot.git]
/
cpu
/
microblaze
/
timer.c
diff --git
a/cpu/microblaze/timer.c
b/cpu/microblaze/timer.c
index ab1cb127492b0c18dff5eb7d3884ae0af117bf3f..b350453443e8d09fbfdaa979df50284df1f57cd7 100644
(file)
--- a/
cpu/microblaze/timer.c
+++ b/
cpu/microblaze/timer.c
@@
-33,10
+33,17
@@
void reset_timer (void)
timestamp = 0;
}
+#ifdef CFG_TIMER_0
ulong get_timer (ulong base)
{
return (timestamp - base);
}
+#else
+ulong get_timer (ulong base)
+{
+ return (timestamp++ - base);
+}
+#endif
void set_timer (ulong t)
{