Messages in this thread | | | Date | Sun, 05 Oct 2008 20:04:41 +0100 | From | Sitsofe Wheeler <> | Subject | Re: [PATCH v3] 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.
This patch also works for me.
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
-- Sitsofe | http://sucs.org/~sits/
| |