Skip to content

Commit

Permalink
Input: remove unnecessary synchronize_rcu() call
Browse files Browse the repository at this point in the history
There is no need to issue serialize_rcu() after adding a new handle
to the list of handles associated with the device because new events
will "see" the new handle in the list immediately. Remove it so we
can boot a little bit faster.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Arjan van de Ven authored and Dmitry Torokhov committed Apr 12, 2009
1 parent 7c46e23 commit b79e83b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,6 @@ int input_register_handle(struct input_handle *handle)
return error;
list_add_tail_rcu(&handle->d_node, &dev->h_list);
mutex_unlock(&dev->mutex);
synchronize_rcu();

/*
* Since we are supposed to be called from ->connect()
Expand Down

0 comments on commit b79e83b

Please sign in to comment.