staging: speakup: speakup_dectlk.c - use time_before_eq()

- this replaces jiffies comparision with safer function using
  time_after_eq()

Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Anil Belur 2014-06-30 18:55:48 +05:30 коммит произвёл Greg Kroah-Hartman
Родитель bc4f07c86e
Коммит dd3fde11d3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -267,7 +267,7 @@ static void do_catch_up(struct spk_synth *synth)
else if (ch <= SPACE) { else if (ch <= SPACE) {
if (!in_escape && strchr(",.!?;:", last)) if (!in_escape && strchr(",.!?;:", last))
spk_serial_out(PROCSPEECH); spk_serial_out(PROCSPEECH);
if (jiffies >= jiff_max) { if (time_after_eq(jiffies, jiff_max)) {
if (!in_escape) if (!in_escape)
spk_serial_out(PROCSPEECH); spk_serial_out(PROCSPEECH);
spin_lock_irqsave(&speakup_info.spinlock, spin_lock_irqsave(&speakup_info.spinlock,