Skip to content

Commit

Permalink
temp save
Browse files Browse the repository at this point in the history
PR=
Acked-by:

Signed-off-by: Junwei Zhang <[email protected]>
  • Loading branch information
Junwei Zhang authored and martinbj2008 committed Oct 1, 2012
1 parent 2f6215c commit 131a80b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kernel/setup_percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ void __init setup_per_cpu_areas(void)
if (pcpu_chosen_fc == PCPU_FC_AUTO && pcpu_need_numa())
pcpu_chosen_fc = PCPU_FC_PAGE;
#endif
printk(KERN_INFO "%s: pcpu_chosen_fc=%d\n", __FUNCTION__, pcpu_chosen_fc);
rc = -EINVAL;
if (pcpu_chosen_fc != PCPU_FC_PAGE) {
const size_t dyn_size = PERCPU_MODULE_RESERVE +
Expand Down
2 changes: 2 additions & 0 deletions linux.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
all:
make J=2
7 changes: 7 additions & 0 deletions mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,13 @@ struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
unsigned long base, start, end, last_end;
bool purged = false;

{
int i;
for (i=0; i<nr_vms; i++) {
printk(KERN_ERR "%s: offsets[%d]=%d, size[%d]=%d\n",
__FUNCTION__, i, offsets[i], i, sizes[i], i);
}
}
/* verify parameters and allocate data structures */
BUG_ON(align & ~PAGE_MASK || !is_power_of_2(align));
for (last_area = 0, area = 0; area < nr_vms; area++) {
Expand Down

0 comments on commit 131a80b

Please sign in to comment.