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

Commit 84f286a1 authored by Kyle Yan's avatar Kyle Yan
Browse files

PM / wakeirq: Fixup SRCU conversion



Commit <5480437f>("PM / wakeirq: Convert to SRCU") changes the
locking infrastructure for wakeup from RCU to SRCU. Fix up missed
location which still uses RCU instead of SRCU.

Change-Id: Ic6b65632ce588bdf56d032a0b62d7143f4bc5f36
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent f3fbc3a3
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);