On Mon, 2008-11-10 at 11:49 +0200, Kalle Valo wrote: > Johannes Berg <johannes@xxxxxxxxxxxxxxxx> writes: > > > On Sun, 2008-11-09 at 17:43 +0200, Kalle Valo wrote: > > > >> bool powersave; > >> + int dynamic_ps_timeout; > >> + struct work_struct ps_enable_work; > >> + struct work_struct ps_disable_work; > >> + struct timer_list dynamic_ps_timer; > > > > I think you could use a delayed work for the enable-work+timer, that > > combines them already. > > I was planning to but I didn't find mod_timer() equivalent for > delayed_work. I need it because I need to cancel the timer all the > time. Is there similar functionality with delayed_work? Ah, you're right, that doesn't seem to exist. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part