Messages in this thread | | | Date | Sat, 04 Oct 2008 23:03:55 +0100 | From | Sitsofe Wheeler <> | Subject | Re: [PATCH] rfkill-input doesn't work until 5 minutes after boot |
| |
Matthew Garrett wrote: > rfkill-input implements debounce as follows: > > if (time_after(jiffies, task->last + msecs_to_jiffies(200))) { > > However, task->last is initialised to 0 while jiffies starts at -300*HZ. > Any input within 5 minutes of kernel start is therefore ignored. Fix by > initialising task->last correctly. > > Signed-off-by: Matthew Garrett <mjg@redhat.com>
Works for me (saves a huge wait to be able to do wifi toggling via a hotkey).
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
-- Sitsofe | http://sucs.org/~sits/
| |