lkml.org 
[lkml]   [2018]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC 16/60] sched: Preparatory code movement
    Date
    Move struct rq_flags around to keep future commits crisp.

    Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
    ---
    kernel/sched/sched.h | 26 +++++++++++++-------------
    1 file changed, 13 insertions(+), 13 deletions(-)

    diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
    index b8c8dfd0e88d..cd3a32ce8fc6 100644
    --- a/kernel/sched/sched.h
    +++ b/kernel/sched/sched.h
    @@ -472,6 +472,19 @@ struct cfs_bandwidth { };

    #endif /* CONFIG_CGROUP_SCHED */

    +struct rq_flags {
    + unsigned long flags;
    + struct pin_cookie cookie;
    +#ifdef CONFIG_SCHED_DEBUG
    + /*
    + * A copy of (rq::clock_update_flags & RQCF_UPDATED) for the
    + * current pin context is stashed here in case it needs to be
    + * restored in rq_repin_lock().
    + */
    + unsigned int clock_update_flags;
    +#endif
    +};
    +
    /* CFS-related fields in a runqueue */
    struct cfs_rq {
    struct load_weight load;
    @@ -1031,19 +1044,6 @@ static inline void rq_clock_cancel_skipupdate(struct rq *rq)
    rq->clock_update_flags &= ~RQCF_REQ_SKIP;
    }

    -struct rq_flags {
    - unsigned long flags;
    - struct pin_cookie cookie;
    -#ifdef CONFIG_SCHED_DEBUG
    - /*
    - * A copy of (rq::clock_update_flags & RQCF_UPDATED) for the
    - * current pin context is stashed here in case it needs to be
    - * restored in rq_repin_lock().
    - */
    - unsigned int clock_update_flags;
    -#endif
    -};
    -
    static inline void rq_pin_lock(struct rq *rq, struct rq_flags *rf)
    {
    rf->cookie = lockdep_pin_lock(&rq->lock);
    --
    2.9.3.1.gcba166c.dirty
    \
     
     \ /
      Last update: 2018-09-07 23:50    [W:4.598 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site