Commit 90342795 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Dmitry Torokhov

Input: tsc2005 - use relative jiffies to schedule the watchdog

Use relative jiffies to schedule the watchdog. Otherwise it will run
like a mad one.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent ddca6a31
...@@ -358,7 +358,7 @@ static void __tsc2005_enable(struct tsc2005 *ts) ...@@ -358,7 +358,7 @@ static void __tsc2005_enable(struct tsc2005 *ts)
if (ts->esd_timeout && ts->set_reset) { if (ts->esd_timeout && ts->set_reset) {
ts->last_valid_interrupt = jiffies; ts->last_valid_interrupt = jiffies;
schedule_delayed_work(&ts->esd_work, schedule_delayed_work(&ts->esd_work,
round_jiffies(jiffies + round_jiffies_relative(
msecs_to_jiffies(ts->esd_timeout))); msecs_to_jiffies(ts->esd_timeout)));
} }
...@@ -512,7 +512,7 @@ static void tsc2005_esd_work(struct work_struct *work) ...@@ -512,7 +512,7 @@ static void tsc2005_esd_work(struct work_struct *work)
out: out:
/* re-arm the watchdog */ /* re-arm the watchdog */
schedule_delayed_work(&ts->esd_work, schedule_delayed_work(&ts->esd_work,
round_jiffies(jiffies + round_jiffies_relative(
msecs_to_jiffies(ts->esd_timeout))); msecs_to_jiffies(ts->esd_timeout)));
mutex_unlock(&ts->mutex); mutex_unlock(&ts->mutex);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment