Skip to content

Commit

Permalink
clocksource: arch_timer: Pass clock event to set_mode callback
Browse files Browse the repository at this point in the history
There isn't any reason why we don't pass the event here and we'll
need it in the near future for memory mapped arch timers anyway.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Marc Zyngier <Marc.Zyngier@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
  • Loading branch information
Stephen Boyd authored and Daniel Lezcano committed Jul 31, 2013
1 parent e09f3cc commit 1ff99ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/arm_arch_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static int __cpuinit arch_timer_setup(struct clock_event_device *clk)

clk->cpumask = cpumask_of(smp_processor_id());

clk->set_mode(CLOCK_EVT_MODE_SHUTDOWN, NULL);
clk->set_mode(CLOCK_EVT_MODE_SHUTDOWN, clk);

clockevents_config_and_register(clk, arch_timer_rate,
0xf, 0x7fffffff);
Expand Down

0 comments on commit 1ff99ea

Please sign in to comment.