diff options
author | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2015-06-25 13:21:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-07-04 04:04:31 -0400 |
commit | 6b55c9654fccf69ae7ace23ca101dc37b903181b (patch) | |
tree | 4f7586ad44a93b402d52e27b573eca52d6a62d32 | |
parent | 5968cecedd7a09f23e9fcb5f9fb4e893712f35ba (diff) |
sched/debug: Move print_cfs_rq() declaration to kernel/sched/sched.h
Currently print_cfs_rq() is declared in include/linux/sched.h.
However it's not used outside kernel/sched. Hence move the
declaration to kernel/sched/sched.h
Also some functions are only available for CONFIG_SCHED_DEBUG=y.
Hence move the declarations to within the #ifdef.
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Iulia Manda <iulia.manda21@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1435252903-1081-2-git-send-email-srikar@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/sched.h | 2 | ||||
-rw-r--r-- | kernel/sched/sched.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9bf4bc0e3b8b..3505352dd296 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -191,8 +191,6 @@ struct task_group; | |||
191 | #ifdef CONFIG_SCHED_DEBUG | 191 | #ifdef CONFIG_SCHED_DEBUG |
192 | extern void proc_sched_show_task(struct task_struct *p, struct seq_file *m); | 192 | extern void proc_sched_show_task(struct task_struct *p, struct seq_file *m); |
193 | extern void proc_sched_set_task(struct task_struct *p); | 193 | extern void proc_sched_set_task(struct task_struct *p); |
194 | extern void | ||
195 | print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq); | ||
196 | #endif | 194 | #endif |
197 | 195 | ||
198 | /* | 196 | /* |
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index aea7c1f393cb..7d5895258fe3 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h | |||
@@ -1668,9 +1668,14 @@ static inline void double_rq_unlock(struct rq *rq1, struct rq *rq2) | |||
1668 | 1668 | ||
1669 | extern struct sched_entity *__pick_first_entity(struct cfs_rq *cfs_rq); | 1669 | extern struct sched_entity *__pick_first_entity(struct cfs_rq *cfs_rq); |
1670 | extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq); | 1670 | extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq); |
1671 | |||
1672 | #ifdef CONFIG_SCHED_DEBUG | ||
1671 | extern void print_cfs_stats(struct seq_file *m, int cpu); | 1673 | extern void print_cfs_stats(struct seq_file *m, int cpu); |
1672 | extern void print_rt_stats(struct seq_file *m, int cpu); | 1674 | extern void print_rt_stats(struct seq_file *m, int cpu); |
1673 | extern void print_dl_stats(struct seq_file *m, int cpu); | 1675 | extern void print_dl_stats(struct seq_file *m, int cpu); |
1676 | extern void | ||
1677 | print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq); | ||
1678 | #endif | ||
1674 | 1679 | ||
1675 | extern void init_cfs_rq(struct cfs_rq *cfs_rq); | 1680 | extern void init_cfs_rq(struct cfs_rq *cfs_rq); |
1676 | extern void init_rt_rq(struct rt_rq *rt_rq); | 1681 | extern void init_rt_rq(struct rt_rq *rt_rq); |