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? > Looks good to me. Thanks a lot for looking at these. -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html