summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-02-01 03:06:12 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-01 08:53:21 -0800
commit9a5e7339908d7d718ebc4149b77eee06291bdb95 (patch)
treec4de6c51b7e9783fb32948539f6b6b09139bc8f5 /arch/alpha/kernel/asm-offsets.c
parent975b3d3d5b983eb60706d35f0d24cd19f6badabf (diff)
downloadlinux-0-day-9a5e7339908d7d718ebc4149b77eee06291bdb95.tar.gz
linux-0-day-9a5e7339908d7d718ebc4149b77eee06291bdb95.tar.xz
[PATCH] alpha: Fix getxpid on alpha so it works for threads
While looking in the code I discovered that alpha has fallen behind because it doesn't use sys_getppid. The problem is that it doesn't follow the task struct to the task_group_leader. Acked-by: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/alpha/kernel/asm-offsets.c')
-rw-r--r--arch/alpha/kernel/asm-offsets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/alpha/kernel/asm-offsets.c b/arch/alpha/kernel/asm-offsets.c
index 8f2e5c718b50f..6c56c754a0b53 100644
--- a/arch/alpha/kernel/asm-offsets.c
+++ b/arch/alpha/kernel/asm-offsets.c
@@ -28,6 +28,7 @@ void foo(void)
DEFINE(TASK_GID, offsetof(struct task_struct, gid));
DEFINE(TASK_EGID, offsetof(struct task_struct, egid));
DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent));
+ DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader));
DEFINE(TASK_TGID, offsetof(struct task_struct, tgid));
BLANK();