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.4/include/linux/cgroup.h

    r28606 r31885  
    529529}
    530530
     531static inline void cgroup_init_kthreadd(void)
     532{
     533        /*
     534         * kthreadd is inherited by all kthreads, keep it in the root so
     535         * that the new kthreads are guaranteed to stay in the root until
     536         * initialization is finished.
     537         */
     538        current->no_cgroup_migration = 1;
     539}
     540
     541static inline void cgroup_kthread_ready(void)
     542{
     543        /*
     544         * This kthread finished initialization.  The creator should have
     545         * set PF_NO_SETAFFINITY if this kthread should stay in the root.
     546         */
     547        current->no_cgroup_migration = 0;
     548}
     549
    531550#else /* !CONFIG_CGROUPS */
    532551
     
    552571static inline int cgroup_init_early(void) { return 0; }
    553572static inline int cgroup_init(void) { return 0; }
     573static inline void cgroup_init_kthreadd(void) {}
     574static inline void cgroup_kthread_ready(void) {}
    554575
    555576#endif /* !CONFIG_CGROUPS */
Note: See TracChangeset for help on using the changeset viewer.