Skip to content

Commit c23dd24

Browse files
tklauserguoren83
authored andcommitted
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 6474924 ("arch: remove unused macro/function thread_saved_pc()") commit c17c020 ("arch: remove unused *_segments() macros/functions") Remove them from arch/csky as well. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Guo Ren <[email protected]> Cc: Arnd Bergmann <[email protected]>
1 parent 92ed301 commit c23dd24

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

arch/csky/include/asm/processor.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ static inline void release_thread(struct task_struct *dead_task)
8282

8383
extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
8484

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-
9185
unsigned long get_wchan(struct task_struct *p);
9286

9387
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)

arch/csky/kernel/process.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@ asmlinkage void ret_from_kernel_thread(void);
3030
*/
3131
void flush_thread(void){}
3232

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-
4333
int copy_thread_tls(unsigned long clone_flags,
4434
unsigned long usp,
4535
unsigned long kthread_arg,

0 commit comments

Comments
 (0)