Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

csky: remove unusued thread_saved_pc and *_segments functions/macros

These are used nowhere in the tree (except for some architectures which
define them for their own use) and were already removed for other
architectures in:

commit 6474924e2b5d ("arch: remove unused macro/function thread_saved_pc()")
commit c17c02040bf0 ("arch: remove unused *_segments() macros/functions")

Remove them from arch/csky as well.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Guo Ren <guoren@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>

authored by

Tobias Klauser and committed by
Guo Ren
c23dd240 92ed3019

-16
-6
arch/csky/include/asm/processor.h
··· 82 82 83 83 extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); 84 84 85 - #define copy_segments(tsk, mm) do { } while (0) 86 - #define release_segments(mm) do { } while (0) 87 - #define forget_segments() do { } while (0) 88 - 89 - extern unsigned long thread_saved_pc(struct task_struct *tsk); 90 - 91 85 unsigned long get_wchan(struct task_struct *p); 92 86 93 87 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
-10
arch/csky/kernel/process.c
··· 30 30 */ 31 31 void flush_thread(void){} 32 32 33 - /* 34 - * Return saved PC from a blocked thread 35 - */ 36 - unsigned long thread_saved_pc(struct task_struct *tsk) 37 - { 38 - struct switch_stack *sw = (struct switch_stack *)tsk->thread.sp; 39 - 40 - return sw->r15; 41 - } 42 - 43 33 int copy_thread_tls(unsigned long clone_flags, 44 34 unsigned long usp, 45 35 unsigned long kthread_arg,