lkml.org 
[lkml]   [2017]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/89] sched/idle: Create <linux/sched/idle.h> for idle CPU related definitions
    Date
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    ---
    include/linux/sched.h | 7 -------
    include/linux/sched/idle.h | 11 +++++++++++
    include/linux/sched/topology.h | 2 ++
    3 files changed, 13 insertions(+), 7 deletions(-)

    diff --git a/include/linux/sched.h b/include/linux/sched.h
    index b2e18537088b..312796d25a05 100644
    --- a/include/linux/sched.h
    +++ b/include/linux/sched.h
    @@ -951,13 +951,6 @@ static inline int sched_info_on(void)
    void force_schedstat_enabled(void);
    #endif

    -enum cpu_idle_type {
    - CPU_IDLE,
    - CPU_NOT_IDLE,
    - CPU_NEWLY_IDLE,
    - CPU_MAX_IDLE_TYPES
    -};
    -
    /*
    * Integer metrics need fixed point arithmetic, e.g., sched/fair
    * has a few: load, load_avg, util_avg, freq, and capacity.
    diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h
    new file mode 100644
    index 000000000000..14640f5798dc
    --- /dev/null
    +++ b/include/linux/sched/idle.h
    @@ -0,0 +1,11 @@
    +#ifndef _LINUX_SCHED_IDLE_H
    +#define _LINUX_SCHED_IDLE_H
    +
    +enum cpu_idle_type {
    + CPU_IDLE,
    + CPU_NOT_IDLE,
    + CPU_NEWLY_IDLE,
    + CPU_MAX_IDLE_TYPES
    +};
    +
    +#endif /* _LINUX_SCHED_IDLE_H */
    diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
    index ae2cb8f9c431..0d6fceff37bb 100644
    --- a/include/linux/sched/topology.h
    +++ b/include/linux/sched/topology.h
    @@ -1,6 +1,8 @@
    #ifndef _LINUX_SCHED_TOPOLOGY_H
    #define _LINUX_SCHED_TOPOLOGY_H

    +#include <linux/sched/idle.h>
    +
    /*
    * sched-domains (multiprocessor balancing) declarations:
    */
    --
    2.7.4
    \
     
     \ /
      Last update: 2017-02-06 14:56    [W:3.197 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site