lkml.org 
[lkml]   [2015]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/6] clocksource: arm_global_timer: Migrate to new 'set-state' interface
On 11-06-15, 16:49, Daniel Lezcano wrote:
> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>

Thanks :)

> >- clk->set_mode = gt_clockevent_set_mode;
> >+ clk->set_state_shutdown = gt_clockevent_shutdown;
> >+ clk->set_state_periodic = gt_clockevent_set_periodic;
> >+ clk->set_state_oneshot = gt_clockevent_shutdown;
>
> nit: it sounds weird to use the same function as the purpose of the
> patch is use the new API which is to ventilate those functions
> (anyway ...)

Hmm, but there is no point creating two routines to do exactly the
same thing. And this is making it evident that we actually shutdown
the device in oneshot-state request. And enable it only when the next
event is programmed.

--
viresh


\
 
 \ /
  Last update: 2015-06-11 17:21    [W:0.172 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site