--- ati_remote.c 2006-07-03 15:42:11.000000000 +0100 +++ ati_remote.c.bak 2006-07-03 15:41:21.000000000 +0100 @@ -156,7 +156,7 @@ * behaviour. * (HZ / 20) == 50 ms and works well for me. */ -#define FILTER_TIME 51 /* msec */ +#define FILTER_TIME (HZ / 20) static DECLARE_MUTEX(disconnect_sem); @@ -472,7 +472,7 @@ /* Filter duplicate events which happen "too close" together. */ if ((ati_remote->old_data[0] == data[1]) && (ati_remote->old_data[1] == data[2]) && - ((ati_remote->old_jiffies + msecs_to_jiffies(FILTER_TIME)) > jiffies)) { + ((ati_remote->old_jiffies + FILTER_TIME) > jiffies)) { ati_remote->repeat_count++; } else { ati_remote->repeat_count = 0;