mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
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>
This commit is contained in:
parent
13d53f8775
commit
13e3813656
1 changed files with 0 additions and 1 deletions
|
@ -110,7 +110,6 @@ void wakeup_source_add(struct wakeup_source *ws)
|
||||||
spin_lock_irq(&events_lock);
|
spin_lock_irq(&events_lock);
|
||||||
list_add_rcu(&ws->entry, &wakeup_sources);
|
list_add_rcu(&ws->entry, &wakeup_sources);
|
||||||
spin_unlock_irq(&events_lock);
|
spin_unlock_irq(&events_lock);
|
||||||
synchronize_rcu();
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(wakeup_source_add);
|
EXPORT_SYMBOL_GPL(wakeup_source_add);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue