提交 13e38136 编写于 作者: E Eric Dumazet 提交者: Rafael J. Wysocki

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: NEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 13d53f87
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册