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

Commit 5ec3ec14 authored by Channagoud Kadabi's avatar Channagoud Kadabi
Browse files

kernel: cpu: send CPU_UP_CANCELLED notifcation



If any of the callbacks during cpu up fail undo_cpu_up calls the
teardown call backs to clean up things but does not send CPU_UP_CANCELLED.
As some drivers still use the notification mechanism for cpu houplug we
need to send CPU_UP_CANCELLED notification so drivers can clean up
things they did on cpu up.

Change-Id: Ia7fb79ff4d7919dc6dacd046c1ce250498371a63
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent e13b3810
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -494,6 +494,7 @@ static int cpuhp_up_callbacks(unsigned int cpu, struct cpuhp_cpu_state *st,
		if (ret) {
			st->target = prev_state;
			undo_cpu_up(cpu, st);
			cpu_notify(CPU_UP_CANCELED, cpu);
			break;
		}
	}