summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-04-05 03:11:04 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-19 19:44:58 +0200
commit434d53b00d6bb7be0a1d3dcc0d0d5df6c042e164 (patch)
tree9bf697c0891127157e75fea409d8d8167d210fd4 /drivers/i2c/algos
parentcpumask: Cleanup more uses of CPU_MASK and NODE_MASK (diff)
downloadlinux-434d53b00d6bb7be0a1d3dcc0d0d5df6c042e164.tar.xz
linux-434d53b00d6bb7be0a1d3dcc0d0d5df6c042e164.zip
sched: remove fixed NR_CPUS sized arrays in kernel_sched_c
* Change fixed size arrays to per_cpu variables or dynamically allocated arrays in sched_init() and sched_init_smp(). (1) static struct sched_entity *init_sched_entity_p[NR_CPUS]; (1) static struct cfs_rq *init_cfs_rq_p[NR_CPUS]; (1) static struct sched_rt_entity *init_sched_rt_entity_p[NR_CPUS]; (1) static struct rt_rq *init_rt_rq_p[NR_CPUS]; static struct sched_group **sched_group_nodes_bycpu[NR_CPUS]; (1) - these arrays are allocated via alloc_bootmem_low() * Change sched_domain_debug_one() to use cpulist_scnprintf instead of cpumask_scnprintf. This reduces the output buffer required and improves readability when large NR_CPU count machines arrive. * In sched_create_group() we allocate new arrays based on nr_cpu_ids. Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/i2c/algos')
0 files changed, 0 insertions, 0 deletions