aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/process_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/process_kern.c')
-rw-r--r--arch/um/kernel/process_kern.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/um/kernel/process_kern.c b/arch/um/kernel/process_kern.c
index ccb6dd6565ec..804c6bbdf67c 100644
--- a/arch/um/kernel/process_kern.c
+++ b/arch/um/kernel/process_kern.c
@@ -54,18 +54,6 @@
54 */ 54 */
55struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } }; 55struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } };
56 56
57struct task_struct *get_task(int pid, int require)
58{
59 struct task_struct *ret;
60
61 read_lock(&tasklist_lock);
62 ret = find_task_by_pid(pid);
63 read_unlock(&tasklist_lock);
64
65 if(require && (ret == NULL)) panic("get_task couldn't find a task\n");
66 return(ret);
67}
68
69int external_pid(void *t) 57int external_pid(void *t)
70{ 58{
71 struct task_struct *task = t ? t : current; 59 struct task_struct *task = t ? t : current;
@@ -210,11 +198,6 @@ int page_size(void)
210 return(PAGE_SIZE); 198 return(PAGE_SIZE);
211} 199}
212 200
213unsigned long page_mask(void)
214{
215 return(PAGE_MASK);
216}
217
218void *um_virt_to_phys(struct task_struct *task, unsigned long addr, 201void *um_virt_to_phys(struct task_struct *task, unsigned long addr,
219 pte_t *pte_out) 202 pte_t *pte_out)
220{ 203{
@@ -347,11 +330,6 @@ char *uml_strdup(char *string)
347 return(new); 330 return(new);
348} 331}
349 332
350void *get_init_task(void)
351{
352 return(&init_thread_union.thread_info.task);
353}
354
355int copy_to_user_proc(void __user *to, void *from, int size) 333int copy_to_user_proc(void __user *to, void *from, int size)
356{ 334{
357 return(copy_to_user(to, from, size)); 335 return(copy_to_user(to, from, size));
@@ -478,15 +456,3 @@ unsigned long arch_align_stack(unsigned long sp)
478 return sp & ~0xf; 456 return sp & ~0xf;
479} 457}
480#endif 458#endif
481
482
483/*
484 * Overrides for Emacs so that we follow Linus's tabbing style.
485 * Emacs will notice this stuff at the end of the file and automatically
486 * adjust the settings for this buffer only. This must remain at the end
487 * of the file.
488 * ---------------------------------------------------------------------------
489 * Local variables:
490 * c-file-style: "linux"
491 * End:
492 */