aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/process.c')
-rw-r--r--arch/um/kernel/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index 7a291239242b..e6d89ad10a71 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -30,7 +30,7 @@
30 */ 30 */
31struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } }; 31struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } };
32 32
33static inline int external_pid(struct task_struct *task) 33static inline int external_pid(void)
34{ 34{
35 /* FIXME: Need to look up userspace_pid by cpu */ 35 /* FIXME: Need to look up userspace_pid by cpu */
36 return userspace_pid[0]; 36 return userspace_pid[0];
@@ -78,7 +78,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
78static inline void set_current(struct task_struct *task) 78static inline void set_current(struct task_struct *task)
79{ 79{
80 cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task) 80 cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task)
81 { external_pid(task), task }); 81 { external_pid(), task });
82} 82}
83 83
84extern void arch_switch_to(struct task_struct *to); 84extern void arch_switch_to(struct task_struct *to);