summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-05-11 22:40:45 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-05-17 23:19:19 +0200
commit13e381365614855bf14c8ad68f9b65e3afd3dd2c (patch)
treeb51f9b4eda56b768f2cc8f5646dd02a8d49d900c /drivers/base
parent13d53f8775c6a00b070a3eef6833795412eb7fcd (diff)
downloadlinux-3.10-13e381365614855bf14c8ad68f9b65e3afd3dd2c.tar.gz
linux-3.10-13e381365614855bf14c8ad68f9b65e3afd3dd2c.tar.bz2
linux-3.10-13e381365614855bf14c8ad68f9b65e3afd3dd2c.zip
PM / Wakeup: Remove useless synchronize_rcu() call
wakeup_source_add() adds an item into wakeup_sources list. There is no need to call synchronize_rcu() at this point. Its only needed in wakeup_source_remove() Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/wakeup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
index abbbd33e8d8..84f7c7d5a09 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -110,7 +110,6 @@ void wakeup_source_add(struct wakeup_source *ws)
spin_lock_irq(&events_lock);
list_add_rcu(&ws->entry, &wakeup_sources);
spin_unlock_irq(&events_lock);
- synchronize_rcu();
}
EXPORT_SYMBOL_GPL(wakeup_source_add);