Commit 13e381365614855bf14c8ad68f9b65e3afd3dd2c

Authored by Eric Dumazet
Committed by Rafael J. Wysocki
1 parent 13d53f8775

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/base/power/wakeup.c
... ... @@ -110,7 +110,6 @@
110 110 spin_lock_irq(&events_lock);
111 111 list_add_rcu(&ws->entry, &wakeup_sources);
112 112 spin_unlock_irq(&events_lock);
113   - synchronize_rcu();
114 113 }
115 114 EXPORT_SYMBOL_GPL(wakeup_source_add);
116 115