Loading drivers/base/power/wakeup.c +3 −2 Original line number Diff line number Diff line Loading @@ -810,8 +810,9 @@ void pm_get_active_wakeup_sources(char *pending_wakeup_source, size_t max) struct wakeup_source *ws, *last_active_ws = NULL; int len = 0; bool active = false; int srcuidx; rcu_read_lock(); srcuidx = srcu_read_lock(&wakeup_srcu); list_for_each_entry_rcu(ws, &wakeup_sources, entry) { if (ws->active && len < max) { if (!active) Loading @@ -832,7 +833,7 @@ void pm_get_active_wakeup_sources(char *pending_wakeup_source, size_t max) "Last active Wakeup Source: %s", last_active_ws->name); } rcu_read_unlock(); srcu_read_unlock(&wakeup_srcu, srcuidx); } EXPORT_SYMBOL_GPL(pm_get_active_wakeup_sources); Loading Loading
drivers/base/power/wakeup.c +3 −2 Original line number Diff line number Diff line Loading @@ -810,8 +810,9 @@ void pm_get_active_wakeup_sources(char *pending_wakeup_source, size_t max) struct wakeup_source *ws, *last_active_ws = NULL; int len = 0; bool active = false; int srcuidx; rcu_read_lock(); srcuidx = srcu_read_lock(&wakeup_srcu); list_for_each_entry_rcu(ws, &wakeup_sources, entry) { if (ws->active && len < max) { if (!active) Loading @@ -832,7 +833,7 @@ void pm_get_active_wakeup_sources(char *pending_wakeup_source, size_t max) "Last active Wakeup Source: %s", last_active_ws->name); } rcu_read_unlock(); srcu_read_unlock(&wakeup_srcu, srcuidx); } EXPORT_SYMBOL_GPL(pm_get_active_wakeup_sources); Loading