summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-01-30 16:30:48 -0500
committerRichard Weinberger <richard@nod.at>2012-03-25 00:29:55 +0100
commitc2220b2a124d2fe7b0074b23680177c8e905a76c (patch)
treef88ed3858ce65669134888f64193ab139a8a95dc /arch/um/kernel
parent28a12cb598e55ca9e1c577899d6624e6a83cdc56 (diff)
downloadblackbird-op-linux-c2220b2a124d2fe7b0074b23680177c8e905a76c.tar.gz
blackbird-op-linux-c2220b2a124d2fe7b0074b23680177c8e905a76c.zip
um: kill HOST_TASK_PID
just provide get_current_pid() to the userland side of things instead of get_current() + manual poking in its results Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel')
-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 69f24905abdc..f386d04a84a5 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -126,9 +126,9 @@ void exit_thread(void)
{
}
-void *get_current(void)
+int get_current_pid(void)
{
- return current;
+ return task_pid_nr(current);
}
/*
OpenPOWER on IntegriCloud