Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f048daaa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PM / wakeirq: Fixup SRCU conversion"

parents 6ddbd82c 2791df88
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -814,8 +814,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)
@@ -836,7 +837,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);