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:
8fa4b93
)
CLOCKSOURCE: mips-gic-timer: Ensure GIC counter is running
author
Markos Chandras
<
[email protected]
>
Mon, 23 Mar 2015 12:32:02 +0000
(12:32 +0000)
committer
Ralf Baechle
<
[email protected]
>
Tue, 31 Mar 2015 10:04:13 +0000
(12:04 +0200)
Start the GIC counter after configuring the clocksource since there
are no guarantees the counter will be running after a CPU reset.
Signed-off-by: Markos Chandras <
[email protected]
>
Cc: Daniel Lezcano <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/9595/
Signed-off-by: Ralf Baechle <
[email protected]
>
drivers/clocksource/mips-gic-timer.c
patch
|
blob
|
history
diff --git
a/drivers/clocksource/mips-gic-timer.c
b/drivers/clocksource/mips-gic-timer.c
index 3bd31b1321f689188116ae56a5f95f64341dfc7e..16adbc1fa4c1a662bd858c992a218acd8ce206c1 100644
(file)
--- a/
drivers/clocksource/mips-gic-timer.c
+++ b/
drivers/clocksource/mips-gic-timer.c
@@
-133,6
+133,9
@@
static void __init __gic_clocksource_init(void)
clocksource_register_hz(&gic_clocksource, gic_frequency);
gic_clockevent_init();
+
+ /* And finally start the counter */
+ gic_start_count();
}
void __init gic_clocksource_init(unsigned int frequency)