26 Sep
2011
26 Sep
'11
4:30 p.m.
On Mon, Sep 26, 2011 at 04:26:33PM +0300, Peter Ujfalusi wrote:
Check for pending work before the DAPM event switch case, and return, if the work is pending. This way we can remove the two additional checks in POST_PMU, and PRE_PMD for non pending works.
Would it not be easier to just not check at all? It looks like you're just deciding if you should schedule the work but schedule_delayed_work ought to handle rescheduling of an already scheduled work item fine.