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>
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];
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 */