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

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

Merge "msm: ssr: Add flag to differentiate between subsys_stop/shutdown"

parents d5fec538 136a448a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -690,6 +690,7 @@ static void subsystem_restart_wq_func(struct work_struct *work)
	struct subsys_tracking *track;
	unsigned count;
	unsigned long flags;
	bool force_stop = true;

	/*
	 * It's OK to not take the registration lock at this point.
@@ -718,9 +719,11 @@ static void subsystem_restart_wq_func(struct work_struct *work)

	pr_debug("[%p]: Starting restart sequence for %s\n", current,
			desc->name);
	notify_each_subsys_device(list, count, SUBSYS_BEFORE_SHUTDOWN, NULL);
	notify_each_subsys_device(list, count, SUBSYS_BEFORE_SHUTDOWN,
							(void *)force_stop);
	for_each_subsys_device(list, count, NULL, subsystem_shutdown);
	notify_each_subsys_device(list, count, SUBSYS_AFTER_SHUTDOWN, NULL);
	notify_each_subsys_device(list, count, SUBSYS_AFTER_SHUTDOWN,
							(void *)force_stop);

	notify_each_subsys_device(list, count, SUBSYS_RAMDUMP_NOTIFICATION,
							  &enable_ramdumps);