Re: [PATCH 28/30] battery: don't use flush_scheduled_work()

From: Anton Vorontsov
Date: Tue Dec 21 2010 - 19:07:51 EST


On Sat, Dec 11, 2010 at 05:51:45PM +0100, Tejun Heo wrote:
> flush_scheduled_work() is deprecated and scheduled to be removed.
>
> In battery drivers, the work can be canceled on probe failure and
> removal and should be flushed on suspend. Replace
> flush_scheduled_work() usages with direct cancels and flushes.
>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> Cc: Anton Vorontsov <cbouatmailru@xxxxxxxxx>
> ---
> This is part of a series to remove flush_scheduled_work() usage to
> prepare for deprecation of flush_scheduled_work(). Patches in this
> series are self contained and mostly straight-forward.
>
> Please feel free to take it into the appropriate tree, or just ack it.
> In the latter case, I'll merge the patch through the workqueue tree
> during the next merge window.
>
> If you're seeing this patch for the second time, it's because the
> commit hasn't showed up in mainline yet. Please let me know what
> should be done.
>
> Thank you.

I applied this to battery-2.6.git, thanks!

--
Anton Vorontsov
Email: cbouatmailru@xxxxxxxxx
--
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/