projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d9cd1f
)
MIPS: Malta: malta-time: Ensure GIC counter is running
author
Markos Chandras
<
[email protected]
>
Mon, 23 Mar 2015 12:32:03 +0000
(12:32 +0000)
committer
Ralf Baechle
<
[email protected]
>
Tue, 31 Mar 2015 10:04:13 +0000
(12:04 +0200)
Start the GIC counter before we try to determine its frequency.
Signed-off-by: Markos Chandras <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/9596/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/mti-malta/malta-time.c
patch
|
blob
|
history
diff --git
a/arch/mips/mti-malta/malta-time.c
b/arch/mips/mti-malta/malta-time.c
index 7d4b865715645ed4dc0085f17715114b4c26f4fc..185e68261f45937eae2b17dcd502420ce0121f69 100644
(file)
--- a/
arch/mips/mti-malta/malta-time.c
+++ b/
arch/mips/mti-malta/malta-time.c
@@
-87,8
+87,10
@@
static void __init estimate_frequencies(void)
/* Initialize counters. */
start = read_c0_count();
- if (gic_present)
+ if (gic_present) {
+ gic_start_count();
gicstart = gic_read_count();
+ }
/* Read counter exactly on falling edge of update flag. */
while (CMOS_READ(RTC_REG_A) & RTC_UIP);