tree cbf2522887ca2921d5f9a9438beda1d7643a7fd6
parent 51ad71b579f76b45adaeddd083ea46948dd04029
author Coywolf Qi Hunt <[EMAIL PROTECTED]> Tue Apr 12 08:26:30 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:26:30 2005
[PATCH] reparent_to_init cleanup
This patch hides reparent_to_init(). reparent_to_init() should only be
called by daemonize().
Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
arch/i386/mach-voyager/voyager_thread.c | 1 -
include/linux/sched.h | 1 -
kernel/exit.c | 2 +-
3 files changed, 1 insertion(+), 3 deletions(-)
Index: arch/i386/mach-voyager/voyager_thread.c
===================================================================
---
de162adce05e54383d2918577177946fe54fd3e5/arch/i386/mach-voyager/voyager_thread.c
(mode:100644 sha1:10e092f7628139b7260355504bbe4b5cd18e729f)
+++
cbf2522887ca2921d5f9a9438beda1d7643a7fd6/arch/i386/mach-voyager/voyager_thread.c
(mode:100644 sha1:5630c3fda012acd72d087defe9cc741b989a1cc2)
@@ -126,7 +126,6 @@
kvoyagerd_running = 1;
- reparent_to_init();
daemonize(THREAD_NAME);
set_timeout = 0;
Index: include/linux/sched.h
===================================================================
--- de162adce05e54383d2918577177946fe54fd3e5/include/linux/sched.h
(mode:100644 sha1:ec0b3e279f3b117ebcffaaae9cc9632d1b258d97)
+++ cbf2522887ca2921d5f9a9438beda1d7643a7fd6/include/linux/sched.h
(mode:100644 sha1:68b3d9de04a1f8802b46ac1f6b9be42b0b649ef2)
@@ -1021,7 +1021,6 @@
extern NORET_TYPE void do_group_exit(int);
-extern void reparent_to_init(void);
extern void daemonize(const char *, ...);
extern int allow_signal(int);
extern int disallow_signal(int);
Index: kernel/exit.c
===================================================================
--- de162adce05e54383d2918577177946fe54fd3e5/kernel/exit.c (mode:100644
sha1:1a50b58453679b6fee8de4f744f4befc39397bb1)
+++ cbf2522887ca2921d5f9a9438beda1d7643a7fd6/kernel/exit.c (mode:100644
sha1:8ba57a2030b1f93b4c3c757b10cf663ca2c864d7)
@@ -220,7 +220,7 @@
*
* NOTE that reparent_to_init() gives the caller full capabilities.
*/
-void reparent_to_init(void)
+static inline void reparent_to_init(void)
{
write_lock_irq(&tasklist_lock);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html