lkml.org 
[lkml]   [2017]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 48/53] sched/headers: Move exit_files() and exit_itimers() from <linux/sched.h> to <linux/sched/task.h>
    Date
    These two functions are task management related, not core scheduler APIs.

    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    ---
    include/linux/sched.h | 4 ----
    include/linux/sched/task.h | 3 +++
    2 files changed, 3 insertions(+), 4 deletions(-)

    diff --git a/include/linux/sched.h b/include/linux/sched.h
    index 0b45211cd8ed..00c52c83e9ac 100644
    --- a/include/linux/sched.h
    +++ b/include/linux/sched.h
    @@ -1382,10 +1382,6 @@ extern void wake_up_new_task(struct task_struct *tsk);
    static inline void kick_process(struct task_struct *tsk) { }
    #endif

    -extern void exit_files(struct task_struct *);
    -
    -extern void exit_itimers(struct signal_struct *);
    -
    extern void __set_task_comm(struct task_struct *tsk, const char *from, bool exec);
    static inline void set_task_comm(struct task_struct *tsk, const char *from)
    {
    diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
    index 2be9fde588a7..a33a8121da9a 100644
    --- a/include/linux/sched/task.h
    +++ b/include/linux/sched/task.h
    @@ -67,6 +67,9 @@ static inline void exit_thread(struct task_struct *tsk)
    #endif
    extern void do_group_exit(int);

    +extern void exit_files(struct task_struct *);
    +extern void exit_itimers(struct signal_struct *);
    +
    extern long _do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *, unsigned long);
    extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *);
    struct task_struct *fork_idle(int);
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-02-08 19:58    [W:4.211 / U:0.368 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site