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

Commit 802b8133 authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Ingo Molnar
Browse files

x86: schedule work only if keventd is already running



Only call schedule_work if keventd is already running.
This is already the way x86_64 does

Signed-off-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e7f8b14e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -708,8 +708,12 @@ static void __cpuinit __smp_prepare_cpu(int cpu)
	clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS,
			min_t(unsigned long, KERNEL_PGD_PTRS, USER_PGD_PTRS));
	flush_tlb_all();
	if (!keventd_up() || current_is_keventd())
		info.task.func(&info.task);
	else {
		schedule_work(&info.task);
		wait_for_completion(&done);
	}

	zap_low_mappings();
}