diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-04-07 08:09:56 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-11 06:58:22 -0400 |
commit | 7dd04b730749f957c116f363524fd622b05e5141 (patch) | |
tree | cfadbf894d653a44f774ebdeb1487f049657d7d0 | |
parent | bf28b253266ebd73c331dde24d64606afde32ceb (diff) |
sched: Remove some dead code
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20110407122942.553814623@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | include/linux/sched.h | 6 | ||||
-rw-r--r-- | kernel/sched.c | 16 |
2 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5a9168b01db8..09d9e02f2b61 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 f4d3a624c50a..5ec685ce516a 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 | ||
6817 | int sched_smt_power_savings = 0, sched_mc_power_savings = 0; | 6817 | int 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 | */ | ||
6825 | struct static_sched_group { | ||
6826 | struct sched_group sg; | ||
6827 | DECLARE_BITMAP(cpus, CONFIG_NR_CPUS); | ||
6828 | }; | ||
6829 | |||
6830 | struct static_sched_domain { | ||
6831 | struct sched_domain sd; | ||
6832 | DECLARE_BITMAP(span, CONFIG_NR_CPUS); | ||
6833 | }; | ||
6834 | |||
6835 | struct sd_data { | 6819 | struct 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; |