diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-05-11 18:38:10 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-05-12 11:28:57 -0400 |
commit | 7cbbb758d3c93b24b45b169af55440d2e7d5b7f6 (patch) | |
tree | 2eda8bad7a0f92c67b2255e9076e892309e85011 /drivers/input/input.c | |
parent | 1201e7e67634624aec89317cf308cd0d3d8d4770 (diff) |
Input: remove useless synchronize_rcu() calls
There is no need to call synchronize_rcu() after a list insertion,
or a NULL->ptr assignment.
However, the reverse operations do need this call.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index ebbceedc92f4..75e11c7b70fd 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -451,7 +451,6 @@ int input_grab_device(struct input_handle *handle) | |||
451 | } | 451 | } |
452 | 452 | ||
453 | rcu_assign_pointer(dev->grab, handle); | 453 | rcu_assign_pointer(dev->grab, handle); |
454 | synchronize_rcu(); | ||
455 | 454 | ||
456 | out: | 455 | out: |
457 | mutex_unlock(&dev->mutex); | 456 | mutex_unlock(&dev->mutex); |