percpu.c (756a025f00091918d9d09ca3229defb160b409c0) percpu.c (1170532bb49f9468aedabdc1d5a560e2521a2bcc)
1/*
2 * mm/percpu.c - percpu memory allocator
3 *
4 * Copyright (C) 2009 SUSE Linux Products GmbH
5 * Copyright (C) 2009 Tejun Heo <tj@kernel.org>
6 *
7 * This file is released under the GPLv2.
8 *

--- 1435 unchanged lines hidden (view full) ---

1444 for (group = 0; group < ai->nr_groups; group++) {
1445 const struct pcpu_group_info *gi = &ai->groups[group];
1446 int unit = 0, unit_end = 0;
1447
1448 BUG_ON(gi->nr_units % upa);
1449 for (alloc_end += gi->nr_units / upa;
1450 alloc < alloc_end; alloc++) {
1451 if (!(alloc % apl)) {
1/*
2 * mm/percpu.c - percpu memory allocator
3 *
4 * Copyright (C) 2009 SUSE Linux Products GmbH
5 * Copyright (C) 2009 Tejun Heo <tj@kernel.org>
6 *
7 * This file is released under the GPLv2.
8 *

--- 1435 unchanged lines hidden (view full) ---

1444 for (group = 0; group < ai->nr_groups; group++) {
1445 const struct pcpu_group_info *gi = &ai->groups[group];
1446 int unit = 0, unit_end = 0;
1447
1448 BUG_ON(gi->nr_units % upa);
1449 for (alloc_end += gi->nr_units / upa;
1450 alloc < alloc_end; alloc++) {
1451 if (!(alloc % apl)) {
1452 printk(KERN_CONT "\n");
1452 pr_cont("\n");
1453 printk("%spcpu-alloc: ", lvl);
1454 }
1453 printk("%spcpu-alloc: ", lvl);
1454 }
1455 printk(KERN_CONT "[%0*d] ", group_width, group);
1455 pr_cont("[%0*d] ", group_width, group);
1456
1457 for (unit_end += upa; unit < unit_end; unit++)
1458 if (gi->cpu_map[unit] != NR_CPUS)
1456
1457 for (unit_end += upa; unit < unit_end; unit++)
1458 if (gi->cpu_map[unit] != NR_CPUS)
1459 printk(KERN_CONT "%0*d ", cpu_width,
1460 gi->cpu_map[unit]);
1459 pr_cont("%0*d ",
1460 cpu_width, gi->cpu_map[unit]);
1461 else
1461 else
1462 printk(KERN_CONT "%s ", empty_str);
1462 pr_cont("%s ", empty_str);
1463 }
1464 }
1463 }
1464 }
1465 printk(KERN_CONT "\n");
1465 pr_cont("\n");
1466}
1467
1468/**
1469 * pcpu_setup_first_chunk - initialize the first percpu chunk
1470 * @ai: pcpu_alloc_info describing how to percpu area is shaped
1471 * @base_addr: mapped address
1472 *
1473 * Initialize the first percpu chunk which contains the kernel static

--- 816 unchanged lines hidden ---
1466}
1467
1468/**
1469 * pcpu_setup_first_chunk - initialize the first percpu chunk
1470 * @ai: pcpu_alloc_info describing how to percpu area is shaped
1471 * @base_addr: mapped address
1472 *
1473 * Initialize the first percpu chunk which contains the kernel static

--- 816 unchanged lines hidden ---