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>
This commit is contained in:
parent
bf28b25326
commit
7dd04b7307
|
@ -883,9 +883,6 @@ struct sched_group {
|
||||||
* NOTE: this field is variable length. (Allocated dynamically
|
* NOTE: this field is variable length. (Allocated dynamically
|
||||||
* by attaching extra space to the end of the structure,
|
* by attaching extra space to the end of the structure,
|
||||||
* depending on how many CPUs the kernel has booted up with)
|
* depending on how many CPUs the kernel has booted up with)
|
||||||
*
|
|
||||||
* It is also be embedded into static data structures at build
|
|
||||||
* time. (See 'struct static_sched_group' in kernel/sched.c)
|
|
||||||
*/
|
*/
|
||||||
unsigned long cpumask[0];
|
unsigned long cpumask[0];
|
||||||
};
|
};
|
||||||
|
@ -994,9 +991,6 @@ struct sched_domain {
|
||||||
* NOTE: this field is variable length. (Allocated dynamically
|
* NOTE: this field is variable length. (Allocated dynamically
|
||||||
* by attaching extra space to the end of the structure,
|
* by attaching extra space to the end of the structure,
|
||||||
* depending on how many CPUs the kernel has booted up with)
|
* depending on how many CPUs the kernel has booted up with)
|
||||||
*
|
|
||||||
* It is also be embedded into static data structures at build
|
|
||||||
* time. (See 'struct static_sched_domain' in kernel/sched.c)
|
|
||||||
*/
|
*/
|
||||||
unsigned long span[0];
|
unsigned long span[0];
|
||||||
};
|
};
|
||||||
|
|
|
@ -6816,22 +6816,6 @@ static void sched_domain_node_span(int node, struct cpumask *span)
|
||||||
|
|
||||||
int sched_smt_power_savings = 0, sched_mc_power_savings = 0;
|
int sched_smt_power_savings = 0, sched_mc_power_savings = 0;
|
||||||
|
|
||||||
/*
|
|
||||||
* The cpus mask in sched_group and sched_domain hangs off the end.
|
|
||||||
*
|
|
||||||
* ( See the the comments in include/linux/sched.h:struct sched_group
|
|
||||||
* and struct sched_domain. )
|
|
||||||
*/
|
|
||||||
struct static_sched_group {
|
|
||||||
struct sched_group sg;
|
|
||||||
DECLARE_BITMAP(cpus, CONFIG_NR_CPUS);
|
|
||||||
};
|
|
||||||
|
|
||||||
struct static_sched_domain {
|
|
||||||
struct sched_domain sd;
|
|
||||||
DECLARE_BITMAP(span, CONFIG_NR_CPUS);
|
|
||||||
};
|
|
||||||
|
|
||||||
struct sd_data {
|
struct sd_data {
|
||||||
struct sched_domain **__percpu sd;
|
struct sched_domain **__percpu sd;
|
||||||
struct sched_group **__percpu sg;
|
struct sched_group **__percpu sg;
|
||||||
|
|
Loading…
Reference in New Issue