summaryrefslogtreecommitdiffstats
path: root/drivers/input/ff-memless.c
diff options
context:
space:
mode:
authorJari Vanhala <ext-jari.vanhala@nokia.com>2009-12-25 06:52:19 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-12-25 06:53:38 +0100
commit25ae08317647c68ed9276f7bdc07d0d5fd042628 (patch)
treef01f06208453f7f59946e868de7a2accc9844cfe /drivers/input/ff-memless.c
parentInput: serio - do not mark kseriod freezable anymore (diff)
downloadlinux-25ae08317647c68ed9276f7bdc07d0d5fd042628.tar.xz
linux-25ae08317647c68ed9276f7bdc07d0d5fd042628.zip
Input: ff-memless - start playing FF effects immediately
Instead of waiting for the next timer tick to start playing an effect do it immediately. This mostly helps systems using low HZ setting. Signed-off-by: Jari Vanhala <ext-jari.vanhala@nokia.com> Acked-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/ff-memless.c')
-rw-r--r--drivers/input/ff-memless.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/ff-memless.c b/drivers/input/ff-memless.c
index b483b2995fa9..decc51f45bfd 100644
--- a/drivers/input/ff-memless.c
+++ b/drivers/input/ff-memless.c
@@ -411,8 +411,6 @@ static int ml_ff_playback(struct input_dev *dev, int effect_id, int value)
msecs_to_jiffies(state->effect->replay.length);
state->adj_at = state->play_at;
- ml_schedule_timer(ml);
-
} else {
debug("initiated stop");
@@ -420,10 +418,10 @@ static int ml_ff_playback(struct input_dev *dev, int effect_id, int value)
__set_bit(FF_EFFECT_ABORTING, &state->flags);
else
__clear_bit(FF_EFFECT_STARTED, &state->flags);
-
- ml_play_effects(ml);
}
+ ml_play_effects(ml);
+
return 0;
}