[RFC 16/60] sched: Preparatory code movement

From: Jan H. SchÃnherr
Date: Fri Sep 07 2018 - 17:49:00 EST


Move struct rq_flags around to keep future commits crisp.

Signed-off-by: Jan H. SchÃnherr <jschoenh@xxxxxxxxx>
---
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