Commit 4bea8811 authored by Zhou Xuemei's avatar Zhou Xuemei Committed by guzitao
Browse files

sw64: register suspend entry for cpu 0 only

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG



--------------------------------

It used to register suspend entry for all of online cpus. Actually,
only cpu 0 will be affected by different hardware design.

The sleep codes are written in assembly, if all cpus jump to BIOS, it
will become more complex, and more difficult to debug.

So, only register suspend entry for cpu 0 to make the BIOS code more
readable and easier to debug.

Signed-off-by: default avatarZhou Xuemei <zhouxuemei@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 5ebb73b6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1536,6 +1536,7 @@ trap_init(void)
	wrent(entUna, 4);
	wrent(entSys, 5);
#ifdef CONFIG_EFI
	if (smp_processor_id() == 0)
		wrent((void *)entSuspend, 6);
#endif
}