diff options
author | Nelson Castillo <arhuaco@freaks-unidos.net> | 2009-01-06 15:26:30 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2009-01-06 15:26:30 +0000 |
commit | 437cd31cff7d4a474a139f4b76fb7040e060fc79 (patch) | |
tree | 0b667aba41af603dc8b10633265c9d51b0ea0089 /drivers/input | |
parent | 34240a1c06ae36180dee695aa25bbae869b2aa26 (diff) |
Remove unneeded concurrency check (s3c2410_ts.c)
This code was needed before but now it is not useful.
event_send_timer_f is not called directly now thus
the concurrency check is not needed. Remove it.
We only schedule the timer using mod_timer.
Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/s3c2410_ts.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/input/touchscreen/s3c2410_ts.c b/drivers/input/touchscreen/s3c2410_ts.c index bc9b410f670..46a33dfddc1 100644 --- a/drivers/input/touchscreen/s3c2410_ts.c +++ b/drivers/input/touchscreen/s3c2410_ts.c @@ -190,16 +190,9 @@ static struct timer_list event_send_timer = static void event_send_timer_f(unsigned long data) { - static unsigned long running; static int noop_counter; int event_type; - if (unlikely(test_and_set_bit(0, &running))) { - mod_timer(&event_send_timer, - jiffies + TS_RELEASE_TIMEOUT); - return; - } - while (__kfifo_get(ts.event_fifo, (unsigned char *)&event_type, sizeof(int))) { int buf[2]; @@ -253,8 +246,6 @@ static void event_send_timer_f(unsigned long data) mod_timer(&event_send_timer, jiffies + TS_RELEASE_TIMEOUT); } - clear_bit(0, &running); - return; ts_exit_error: /* should not happen unless we have a bug */ |