Re: [PATCH] rfkill-input doesn't work until 5 minutes after boot
From: Sitsofe Wheeler
Date: Sat Oct 04 2008 - 18:05:01 EST
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@xxxxxxxxxx>
Works for me (saves a huge wait to be able to do wifi toggling via a
hotkey).
Tested-by: Sitsofe Wheeler <sitsofe@xxxxxxxxx>
--
Sitsofe | http://sucs.org/~sits/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/