]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
csky: Fixup duplicated restore sp in RESTORE_REGS_FTRACE
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 28 Jul 2020 16:18:54 +0000 (16:18 +0000)
committerGuo Ren <guoren@linux.alibaba.com>
Fri, 31 Jul 2020 01:51:48 +0000 (01:51 +0000)
There is no user return for RESTORE_REGS_FTRACE, so it's no need to
save sp into ss0 as RESTORE_REGS_ALL.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/abiv2/inc/abi/entry.h

index 4fdd6c12e7ff8571cf82ca66061d4d3a4d39b991..bedcc6f06bba23bbd99992b83bab860b38bdc7af 100644 (file)
 
 .macro RESTORE_REGS_FTRACE
        ldw     tls, (sp, 0)
-       ldw     a0, (sp, 16)
-       mtcr    a0, ss0
 
 #ifdef CONFIG_CPU_HAS_HILO
        ldw     a0, (sp, 140)
        addi    sp, 40
        ldm     r16-r30, (sp)
        addi    sp, 72
-       mfcr    sp, ss0
 .endm
 
 .macro SAVE_SWITCH_STACK