]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Input: remove unnecessary synchronize_rcu() call
authorArjan van de Ven <arjan@infradead.org>
Sat, 11 Apr 2009 23:50:15 +0000 (16:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 12 Apr 2009 00:09:14 +0000 (17:09 -0700)
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>
drivers/input/input.c

index 913392f63f767b62763197687fe63ff559a2b60e..a79c83397a9c16f2450fb3fe3641506191d897d8 100644 (file)
@@ -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()