Commit e9adb8f9 authored by Wu Liliu's avatar Wu Liliu Committed by guzitao
Browse files

sw64: remove redudant save_ktp

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



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

Macro save_ktp are defined in both hmcall.h and head.S which is
unnecessary. Remove the definition in head.S.

Signed-off-by: default avatarWu Liliu <wuliliu@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 92b013ee
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -12,14 +12,6 @@
#include <asm/setup.h>
#include <asm/csr.h>

	.macro SAVE_KTP
#ifdef CONFIG_SUBARCH_C3B
	sys_call HMC_wrktp
#else
	csrw	$8, CSR_KTP
#endif
	.endm

__HEAD
	.globl _stext
	.set noreorder
@@ -120,7 +112,6 @@ __smp_callin:
	ldi	$2, idle_task_pointer
	s8addl	$0, $2, $2
	ldl	$8, 0($2)	# Get ksp of idle thread
	SAVE_KTP

	ldl	$30, TASK_STACK($8)
	ldi	$30, ASM_THREAD_SIZE($30)
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ void smp_callin(void)
		udelay(1000);
	}
#endif
	save_ktp();
	cpuid = smp_processor_id();
	local_irq_disable();