lkml.org 
[lkml]   [2013]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 3/5] clocksource: arch_timer: Pass clock event to set_mode callback
    Date
    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>
    ---
    drivers/clocksource/arm_arch_timer.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
    index aa07038..7624ba5 100644
    --- a/drivers/clocksource/arm_arch_timer.c
    +++ b/drivers/clocksource/arm_arch_timer.c
    @@ -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);
    --
    The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
    hosted by The Linux Foundation


    \
     
     \ /
      Last update: 2013-07-19 03:42    [W:4.548 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site