diff options
Diffstat (limited to 'arch/mips/kernel/process.c')
-rw-r--r-- | arch/mips/kernel/process.c | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 04e5b38d327d..6bdfb5a9fa1a 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/completion.h> | 26 | #include <linux/completion.h> |
27 | #include <linux/kallsyms.h> | 27 | #include <linux/kallsyms.h> |
28 | 28 | ||
29 | #include <asm/abi.h> | ||
30 | #include <asm/bootinfo.h> | 29 | #include <asm/bootinfo.h> |
31 | #include <asm/cpu.h> | 30 | #include <asm/cpu.h> |
32 | #include <asm/dsp.h> | 31 | #include <asm/dsp.h> |
@@ -52,11 +51,11 @@ ATTRIB_NORET void cpu_idle(void) | |||
52 | /* endless idle loop with no priority at all */ | 51 | /* endless idle loop with no priority at all */ |
53 | while (1) { | 52 | while (1) { |
54 | while (!need_resched()) { | 53 | while (!need_resched()) { |
55 | #ifdef CONFIG_MIPS_MT_SMTC | 54 | #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG |
56 | extern void smtc_idle_loop_hook(void); | 55 | extern void smtc_idle_loop_hook(void); |
57 | 56 | ||
58 | smtc_idle_loop_hook(); | 57 | smtc_idle_loop_hook(); |
59 | #endif /* CONFIG_MIPS_MT_SMTC */ | 58 | #endif |
60 | if (cpu_wait) | 59 | if (cpu_wait) |
61 | (*cpu_wait)(); | 60 | (*cpu_wait)(); |
62 | } | 61 | } |
@@ -66,38 +65,6 @@ ATTRIB_NORET void cpu_idle(void) | |||
66 | } | 65 | } |
67 | } | 66 | } |
68 | 67 | ||
69 | /* | ||
70 | * Native o32 and N64 ABI without DSP ASE | ||
71 | */ | ||
72 | struct mips_abi mips_abi = { | ||
73 | .do_signal = do_signal, | ||
74 | #ifdef CONFIG_TRAD_SIGNALS | ||
75 | .setup_frame = setup_frame, | ||
76 | #endif | ||
77 | .setup_rt_frame = setup_rt_frame | ||
78 | }; | ||
79 | |||
80 | #ifdef CONFIG_MIPS32_O32 | ||
81 | /* | ||
82 | * o32 compatibility on 64-bit kernels, without DSP ASE | ||
83 | */ | ||
84 | struct mips_abi mips_abi_32 = { | ||
85 | .do_signal = do_signal32, | ||
86 | .setup_frame = setup_frame_32, | ||
87 | .setup_rt_frame = setup_rt_frame_32 | ||
88 | }; | ||
89 | #endif /* CONFIG_MIPS32_O32 */ | ||
90 | |||
91 | #ifdef CONFIG_MIPS32_N32 | ||
92 | /* | ||
93 | * N32 on 64-bit kernels, without DSP ASE | ||
94 | */ | ||
95 | struct mips_abi mips_abi_n32 = { | ||
96 | .do_signal = do_signal, | ||
97 | .setup_rt_frame = setup_rt_frame_n32 | ||
98 | }; | ||
99 | #endif /* CONFIG_MIPS32_N32 */ | ||
100 | |||
101 | asmlinkage void ret_from_fork(void); | 68 | asmlinkage void ret_from_fork(void); |
102 | 69 | ||
103 | void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) | 70 | void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) |
@@ -246,7 +213,7 @@ int dump_task_fpu (struct task_struct *t, elf_fpregset_t *fpr) | |||
246 | /* | 213 | /* |
247 | * Create a kernel thread | 214 | * Create a kernel thread |
248 | */ | 215 | */ |
249 | ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *)) | 216 | static ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *)) |
250 | { | 217 | { |
251 | do_exit(fn(arg)); | 218 | do_exit(fn(arg)); |
252 | } | 219 | } |