statically initialize struct pid for swapper
authorSukadev Bhattiprolu <[email protected]>
Fri, 11 May 2007 05:23:00 +0000 (22:23 -0700)
committerLinus Torvalds <[email protected]>
Fri, 11 May 2007 15:29:35 +0000 (08:29 -0700)
commit820e45db2380eb1545fa2bc5d34b8b2f2933faeb
tree426e89e9205e44559d949d9cdf8bf1035bdc3710
parente713d0dab21a68500720e222fa02567fc7dfb14b
statically initialize struct pid for swapper

Statically initialize a struct pid for the swapper process (pid_t == 0) and
attach it to init_task.  This is needed so task_pid(), task_pgrp() and
task_session() interfaces work on the swapper process also.

Signed-off-by: Sukadev Bhattiprolu <[email protected]>
Cc: Cedric Le Goater <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: Eric Biederman <[email protected]>
Cc: Herbert Poetzl <[email protected]>
Cc: <[email protected]>
Acked-by: Eric W. Biederman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/init_task.h
include/linux/pid.h
kernel/pid.c