aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-prima2/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-prima2/timer.c')
-rw-r--r--arch/arm/mach-prima2/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-prima2/timer.c b/arch/arm/mach-prima2/timer.c
index ed7ec48d11da..26ab6fee5619 100644
--- a/arch/arm/mach-prima2/timer.c
+++ b/arch/arm/mach-prima2/timer.c
@@ -133,14 +133,14 @@ static struct irqaction sirfsoc_timer_irq = {
133/* Overwrite weak default sched_clock with more precise one */ 133/* Overwrite weak default sched_clock with more precise one */
134unsigned long long notrace sched_clock(void) 134unsigned long long notrace sched_clock(void)
135{ 135{
136 static int is_mapped = 0; 136 static int is_mapped;
137 137
138 /* 138 /*
139 * sched_clock is called earlier than .init of sys_timer 139 * sched_clock is called earlier than .init of sys_timer
140 * if we map timer memory in .init of sys_timer, system 140 * if we map timer memory in .init of sys_timer, system
141 * will panic due to illegal memory access 141 * will panic due to illegal memory access
142 */ 142 */
143 if(!is_mapped) { 143 if (!is_mapped) {
144 sirfsoc_of_timer_map(); 144 sirfsoc_of_timer_map();
145 is_mapped = 1; 145 is_mapped = 1;
146 } 146 }