Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (5 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/include/linux/cgroup.h

    r31574 r31885  
    571571}
    572572
     573static inline void cgroup_init_kthreadd(void)
     574{
     575        /*
     576         * kthreadd is inherited by all kthreads, keep it in the root so
     577         * that the new kthreads are guaranteed to stay in the root until
     578         * initialization is finished.
     579         */
     580        current->no_cgroup_migration = 1;
     581}
     582
     583static inline void cgroup_kthread_ready(void)
     584{
     585        /*
     586         * This kthread finished initialization.  The creator should have
     587         * set PF_NO_SETAFFINITY if this kthread should stay in the root.
     588         */
     589        current->no_cgroup_migration = 0;
     590}
     591
    573592#else /* !CONFIG_CGROUPS */
    574593
     
    591610static inline int cgroup_init_early(void) { return 0; }
    592611static inline int cgroup_init(void) { return 0; }
     612static inline void cgroup_init_kthreadd(void) {}
     613static inline void cgroup_kthread_ready(void) {}
    593614
    594615static inline bool task_under_cgroup_hierarchy(struct task_struct *task,
Note: See TracChangeset for help on using the changeset viewer.