aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-05-20 14:23:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-05-20 14:23:34 -0400
commit441cab960d991897ec0e739dffee018bb2479c45 (patch)
treef8ceb4e56cb0cb8d70aa705e05dbce7ed2e42e8c
parent74cce52f9f92b64febd7c84ed68f5a5607c779b6 (diff)
parentcd33d8803bfa3f5e6e5d7a4bb03fc8cc32c40fb6 (diff)
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixlets from Thomas Gleixner: "Three trivial fixlets for the scheduler: - move print_rt_rq() and print_dl_rq() declarations to the right place - make grub_reclaim() static - fix the bogus documentation reference in Kconfig" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/fair: Fix documentation file path sched/deadline: Make the grub_reclaim() function static sched/debug: Move the print_rt_rq() and print_dl_rq() declarations to kernel/sched/sched.h
-rw-r--r--init/Kconfig2
-rw-r--r--kernel/sched/deadline.c4
-rw-r--r--kernel/sched/rt.c2
-rw-r--r--kernel/sched/sched.h5
4 files changed, 5 insertions, 8 deletions
diff --git a/init/Kconfig b/init/Kconfig
index f013afc74b11..18b151f0ddc1 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -738,7 +738,7 @@ config CFS_BANDWIDTH
738 tasks running within the fair group scheduler. Groups with no limit 738 tasks running within the fair group scheduler. Groups with no limit
739 set are considered to be unconstrained and will run with no 739 set are considered to be unconstrained and will run with no
740 restriction. 740 restriction.
741 See tip/Documentation/scheduler/sched-bwc.txt for more information. 741 See Documentation/scheduler/sched-bwc.txt for more information.
742 742
743config RT_GROUP_SCHED 743config RT_GROUP_SCHED
744 bool "Group scheduling for SCHED_RR/FIFO" 744 bool "Group scheduling for SCHED_RR/FIFO"
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index e7b3008b85bb..1356afd1eeb6 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1117,7 +1117,7 @@ extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq);
1117 * should be larger than 2^(64 - 20 - 8), which is more than 64 seconds. 1117 * should be larger than 2^(64 - 20 - 8), which is more than 64 seconds.
1118 * So, overflow is not an issue here. 1118 * So, overflow is not an issue here.
1119 */ 1119 */
1120u64 grub_reclaim(u64 delta, struct rq *rq, struct sched_dl_entity *dl_se) 1120static u64 grub_reclaim(u64 delta, struct rq *rq, struct sched_dl_entity *dl_se)
1121{ 1121{
1122 u64 u_inact = rq->dl.this_bw - rq->dl.running_bw; /* Utot - Uact */ 1122 u64 u_inact = rq->dl.this_bw - rq->dl.running_bw; /* Utot - Uact */
1123 u64 u_act; 1123 u64 u_act;
@@ -2731,8 +2731,6 @@ bool dl_cpu_busy(unsigned int cpu)
2731#endif 2731#endif
2732 2732
2733#ifdef CONFIG_SCHED_DEBUG 2733#ifdef CONFIG_SCHED_DEBUG
2734extern void print_dl_rq(struct seq_file *m, int cpu, struct dl_rq *dl_rq);
2735
2736void print_dl_stats(struct seq_file *m, int cpu) 2734void print_dl_stats(struct seq_file *m, int cpu)
2737{ 2735{
2738 print_dl_rq(m, cpu, &cpu_rq(cpu)->dl); 2736 print_dl_rq(m, cpu, &cpu_rq(cpu)->dl);
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 7aef6b4e885a..ef3c4e6f5345 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -2701,8 +2701,6 @@ int sched_rr_handler(struct ctl_table *table, int write,
2701} 2701}
2702 2702
2703#ifdef CONFIG_SCHED_DEBUG 2703#ifdef CONFIG_SCHED_DEBUG
2704extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq);
2705
2706void print_rt_stats(struct seq_file *m, int cpu) 2704void print_rt_stats(struct seq_file *m, int cpu)
2707{ 2705{
2708 rt_rq_iter_t iter; 2706 rt_rq_iter_t iter;
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 15750c222ca2..1f0a4bc6a39d 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2025,8 +2025,9 @@ extern bool sched_debug_enabled;
2025extern void print_cfs_stats(struct seq_file *m, int cpu); 2025extern void print_cfs_stats(struct seq_file *m, int cpu);
2026extern void print_rt_stats(struct seq_file *m, int cpu); 2026extern void print_rt_stats(struct seq_file *m, int cpu);
2027extern void print_dl_stats(struct seq_file *m, int cpu); 2027extern void print_dl_stats(struct seq_file *m, int cpu);
2028extern void 2028extern void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq);
2029print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq); 2029extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq);
2030extern void print_dl_rq(struct seq_file *m, int cpu, struct dl_rq *dl_rq);
2030#ifdef CONFIG_NUMA_BALANCING 2031#ifdef CONFIG_NUMA_BALANCING
2031extern void 2032extern void
2032show_numa_stats(struct task_struct *p, struct seq_file *m); 2033show_numa_stats(struct task_struct *p, struct seq_file *m);