diff options
author | Paul Burton <paul.burton@imgtec.com> | 2013-11-19 12:30:37 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-24 16:39:45 -0500 |
commit | 8c0f8ab0e942da00a910d342c65a44656ef843cf (patch) | |
tree | 3d37d4e4852dac8023f8376726fbb1b99b84b17a /arch/mips/include/asm | |
parent | f0c0c2a81d2b5fa9fa4d7d43419bde1ebe8f05c1 (diff) |
MIPS: clean up resume declaration
This patch cleans up the declaration of the resume function by replacing
void pointers with their correct types. The irrelevant & incorrect
comment preceeding the resume function is replaced by one documenting
its function.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Qais Yousef <qais.yousef@imgtec.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6146/
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/switch_to.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/mips/include/asm/switch_to.h b/arch/mips/include/asm/switch_to.h index eb0af15ac656..278d45a09728 100644 --- a/arch/mips/include/asm/switch_to.h +++ b/arch/mips/include/asm/switch_to.h | |||
@@ -19,11 +19,19 @@ | |||
19 | 19 | ||
20 | struct task_struct; | 20 | struct task_struct; |
21 | 21 | ||
22 | /* | 22 | /** |
23 | * switch_to(n) should switch tasks to task nr n, first | 23 | * resume - resume execution of a task |
24 | * checking that n isn't the current task, in which case it does nothing. | 24 | * @prev: The task previously executed. |
25 | * @next: The task to begin executing. | ||
26 | * @next_ti: task_thread_info(next). | ||
27 | * @usedfpu: Non-zero if prev's FP context should be saved. | ||
28 | * | ||
29 | * This function is used whilst scheduling to save the context of prev & load | ||
30 | * the context of next. Returns prev. | ||
25 | */ | 31 | */ |
26 | extern asmlinkage void *resume(void *last, void *next, void *next_ti, u32 __usedfpu); | 32 | extern asmlinkage struct task_struct *resume(struct task_struct *prev, |
33 | struct task_struct *next, struct thread_info *next_ti, | ||
34 | u32 usedfpu); | ||
27 | 35 | ||
28 | extern unsigned int ll_bit; | 36 | extern unsigned int ll_bit; |
29 | extern struct task_struct *ll_task; | 37 | extern struct task_struct *ll_task; |