Re: [PATCH v3] rfkill-input doesn't work until 5 minutes after boot

From: Sitsofe Wheeler
Date: Sun Oct 05 2008 - 15:04:40 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.

This patch also works for me.

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/