From 822859143e9f0c7bfb2eb7298981fa0d791f0232 Mon Sep 17 00:00:00 2001 From: Karol Swietlicki Date: Mon, 4 Feb 2008 22:31:03 -0800 Subject: [PATCH] --- yaml --- r: 83197 b: refs/heads/master c: 2dc5802a22d68d83ef4c3d616912949a6527bb65 h: refs/heads/master i: 83195: abd9529ab4de8485a905fb027a4349f553b611a7 v: v3 --- [refs] | 2 +- trunk/arch/um/Kconfig | 17 ----------------- trunk/arch/um/Makefile-tt | 5 ----- trunk/arch/um/drivers/mconsole_kern.c | 3 --- trunk/arch/um/kernel/process.c | 4 ++-- 5 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 trunk/arch/um/Makefile-tt diff --git a/[refs] b/[refs] index 891c3ed61c3c..c6e7334406f0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fee64d3c153f1d5c28f91214b4d0db54d3f1fe0a +refs/heads/master: 2dc5802a22d68d83ef4c3d616912949a6527bb65 diff --git a/trunk/arch/um/Kconfig b/trunk/arch/um/Kconfig index 58f5a141faa9..a967d95603cb 100644 --- a/trunk/arch/um/Kconfig +++ b/trunk/arch/um/Kconfig @@ -95,23 +95,6 @@ config LD_SCRIPT_DYN default y depends on !LD_SCRIPT_STATIC -config NET - bool "Networking support" - help - Unless you really know what you are doing, you should say Y here. - The reason is that some programs need kernel networking support even - when running on a stand-alone machine that isn't connected to any - other computer. If you are upgrading from an older kernel, you - should consider updating your networking tools too because changes - in the kernel and the tools often go hand in hand. The tools are - contained in the package net-tools, the location and version number - of which are given in . - - For a general introduction to Linux networking, it is highly - recommended to read the NET-HOWTO, available from - . - - source "fs/Kconfig.binfmt" config HOSTFS diff --git a/trunk/arch/um/Makefile-tt b/trunk/arch/um/Makefile-tt deleted file mode 100644 index 03f7b10cfd0b..000000000000 --- a/trunk/arch/um/Makefile-tt +++ /dev/null @@ -1,5 +0,0 @@ -# -# Copyright (C) 2002 Jeff Dike (jdike@karaya.com) -# Licensed under the GPL -# - diff --git a/trunk/arch/um/drivers/mconsole_kern.c b/trunk/arch/um/drivers/mconsole_kern.c index 0f3c7d14a6e3..fabd75f5bb5c 100644 --- a/trunk/arch/um/drivers/mconsole_kern.c +++ b/trunk/arch/um/drivers/mconsole_kern.c @@ -741,7 +741,6 @@ void mconsole_stack(struct mc_request *req) { char *ptr = req->request.data; int pid_requested= -1; - struct task_struct *from = NULL; struct task_struct *to = NULL; /* @@ -763,8 +762,6 @@ void mconsole_stack(struct mc_request *req) return; } - from = current; - to = find_task_by_pid(pid_requested); if ((to == NULL) || (pid_requested == 0)) { mconsole_reply(req, "Couldn't find that pid", 1, 0); diff --git a/trunk/arch/um/kernel/process.c b/trunk/arch/um/kernel/process.c index 7a291239242b..e6d89ad10a71 100644 --- a/trunk/arch/um/kernel/process.c +++ b/trunk/arch/um/kernel/process.c @@ -30,7 +30,7 @@ */ struct cpu_task cpu_tasks[NR_CPUS] = { [0 ... NR_CPUS - 1] = { -1, NULL } }; -static inline int external_pid(struct task_struct *task) +static inline int external_pid(void) { /* FIXME: Need to look up userspace_pid by cpu */ return userspace_pid[0]; @@ -78,7 +78,7 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) static inline void set_current(struct task_struct *task) { cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task) - { external_pid(task), task }); + { external_pid(), task }); } extern void arch_switch_to(struct task_struct *to);