Re: [PATCH 2/2] tick: SHUTDOWN event-dev if no events are required for KTIME_MAX

From: Viresh Kumar
Date: Mon May 12 2014 - 03:07:35 EST


On 10 May 2014 16:31, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> There is even a better way to do that:
>
> 1) Create a new callback set_state() which has an
> int return value.
>
> 2) Make the callsites do
>
> if (dev->set_state) {
> ret = dev->set_state();
> handle_return_value();
> } else
> dev->set_mode();

Do you want me to touch clock_event_mode as well?
Otherwise we will pass mode into a function setting state..

Or we can do s/mode/state after all the work suggested by you
is done ..

Or leave as is..

1 & 2, should be just 1-2 patches, I will try to send them as soon
as possible. Once these get your nod, will start working on fixing
all the clockevent drivers.

--
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/