Skip to content

Commit

Permalink
ARM: S5P: Fix bug on init of PWMTimers for HRTimer
Browse files Browse the repository at this point in the history
This patch fixes following.

<6>[    0.000000] sched_clock: 32 bits at 33MHz, ...
<6>[  128.651309] Calibrating delay loop...

There is a big jump. The reason is that PWM Timer which
is for HRTimer was used before its initialization.

So this patch changes its order and following is kernel
boot log message after this.

<6>[    0.000000] sched_clock: 32 bits at 33MHz, ...
<6>[    0.000088] Calibrating delay loop...

Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Sangbeom Kim authored and Kukjin Kim committed Jul 5, 2011
1 parent bb8bb57 commit 27ea7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/plat-s5p/s5p-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ static void __init s5p_clocksource_init(void)

clock_rate = clk_get_rate(tin_source);

init_sched_clock(&cd, s5p_update_sched_clock, 32, clock_rate);

s5p_time_setup(timer_source.source_id, TCNT_MAX);
s5p_time_start(timer_source.source_id, PERIODIC);

init_sched_clock(&cd, s5p_update_sched_clock, 32, clock_rate);

if (clocksource_register_hz(&time_clocksource, clock_rate))
panic("%s: can't register clocksource\n", time_clocksource.name);
}
Expand Down

0 comments on commit 27ea7fd

Please sign in to comment.