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

Commit 1d9aee75 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 226b29b1 84f286a1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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)
@@ -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);