Messages in this thread | | | Date | Sun, 5 Oct 2008 10:51:37 -0300 | From | Henrique de Moraes Holschuh <> | Subject | Re: [PATCH v3] rfkill-input doesn't work until 5 minutes after boot |
| |
On Sun, 05 Oct 2008, 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>
FWIW: Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
-- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
| |