Skip to content

Commit

Permalink
csky: remove unusued thread_saved_pc and *_segments functions/macros
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tklauser authored and guoren83 committed Jul 31, 2020
1 parent 92ed301 commit c23dd24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions arch/csky/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ static inline void release_thread(struct task_struct *dead_task)

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

#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define forget_segments() do { } while (0)

extern unsigned long thread_saved_pc(struct task_struct *tsk);

unsigned long get_wchan(struct task_struct *p);

#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
Expand Down
10 changes: 0 additions & 10 deletions arch/csky/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ asmlinkage void ret_from_kernel_thread(void);
*/
void flush_thread(void){}

/*
* Return saved PC from a blocked thread
*/
unsigned long thread_saved_pc(struct task_struct *tsk)
{
struct switch_stack *sw = (struct switch_stack *)tsk->thread.sp;

return sw->r15;
}

int copy_thread_tls(unsigned long clone_flags,
unsigned long usp,
unsigned long kthread_arg,
Expand Down

0 comments on commit c23dd24

Please sign in to comment.