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

Commit ac076758 authored by Avi Kivity's avatar Avi Kivity
Browse files

HOTPLUG: Adapt cpuset hotplug callback to CPU_DYING



CPU_DYING is called in atomic context, so don't try to take any locks.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent db912f96
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2138,6 +2138,9 @@ static void common_cpu_mem_hotplug_unplug(void)
static int cpuset_handle_cpuhp(struct notifier_block *nb,
				unsigned long phase, void *cpu)
{
	if (phase == CPU_DYING || phase == CPU_DYING_FROZEN)
		return NOTIFY_DONE;

	common_cpu_mem_hotplug_unplug();
	return 0;
}