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

Unverified Commit b18d6f05 authored by Palmer Dabbelt's avatar Palmer Dabbelt
Browse files

RISC-V: Comment on the TLB flush in smp_callin()



This isn't readily apparent from reading the code.

Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
[Atish: code comment formatting update]
Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 19ccf29b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -106,6 +106,10 @@ asmlinkage void __init smp_callin(void)
	trap_init();
	notify_cpu_starting(smp_processor_id());
	set_cpu_online(smp_processor_id(), 1);
	/*
	 * Remote TLB flushes are ignored while the CPU is offline, so emit
	 * a local TLB flush right now just in case.
	 */
	local_flush_tlb_all();
	local_irq_enable();
	preempt_disable();