aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sched.h6
-rw-r--r--kernel/sched.c16
2 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5a9168b01db..09d9e02f2b6 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -883,9 +883,6 @@ struct sched_group {
883 * NOTE: this field is variable length. (Allocated dynamically 883 * NOTE: this field is variable length. (Allocated dynamically
884 * by attaching extra space to the end of the structure, 884 * by attaching extra space to the end of the structure,
885 * depending on how many CPUs the kernel has booted up with) 885 * depending on how many CPUs the kernel has booted up with)
886 *
887 * It is also be embedded into static data structures at build
888 * time. (See 'struct static_sched_group' in kernel/sched.c)
889 */ 886 */
890 unsigned long cpumask[0]; 887 unsigned long cpumask[0];
891}; 888};
@@ -994,9 +991,6 @@ struct sched_domain {
994 * NOTE: this field is variable length. (Allocated dynamically 991 * NOTE: this field is variable length. (Allocated dynamically
995 * by attaching extra space to the end of the structure, 992 * by attaching extra space to the end of the structure,
996 * depending on how many CPUs the kernel has booted up with) 993 * depending on how many CPUs the kernel has booted up with)
997 *
998 * It is also be embedded into static data structures at build
999 * time. (See 'struct static_sched_domain' in kernel/sched.c)
1000 */ 994 */
1001 unsigned long span[0]; 995 unsigned long span[0];
1002}; 996};
diff --git a/kernel/sched.c b/kernel/sched.c
index f4d3a624c50..5ec685ce516 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6816,22 +6816,6 @@ static void sched_domain_node_span(int node, struct cpumask *span)
6816 6816
6817int sched_smt_power_savings = 0, sched_mc_power_savings = 0; 6817int sched_smt_power_savings = 0, sched_mc_power_savings = 0;
6818 6818
6819/*
6820 * The cpus mask in sched_group and sched_domain hangs off the end.
6821 *
6822 * ( See the the comments in include/linux/sched.h:struct sched_group
6823 * and struct sched_domain. )
6824 */
6825struct static_sched_group {
6826 struct sched_group sg;
6827 DECLARE_BITMAP(cpus, CONFIG_NR_CPUS);
6828};
6829
6830struct static_sched_domain {
6831 struct sched_domain sd;
6832 DECLARE_BITMAP(span, CONFIG_NR_CPUS);
6833};
6834
6835struct sd_data { 6819struct sd_data {
6836 struct sched_domain **__percpu sd; 6820 struct sched_domain **__percpu sd;
6837 struct sched_group **__percpu sg; 6821 struct sched_group **__percpu sg;