Skip to content

Commit 131a80b

Browse files
Junwei Zhangmartinbj2008
authored andcommitted
temp save
PR= Acked-by: Signed-off-by: Junwei Zhang <[email protected]>
1 parent 2f6215c commit 131a80b

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

arch/x86/kernel/setup_percpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ void __init setup_per_cpu_areas(void)
183183
if (pcpu_chosen_fc == PCPU_FC_AUTO && pcpu_need_numa())
184184
pcpu_chosen_fc = PCPU_FC_PAGE;
185185
#endif
186+
printk(KERN_INFO "%s: pcpu_chosen_fc=%d\n", __FUNCTION__, pcpu_chosen_fc);
186187
rc = -EINVAL;
187188
if (pcpu_chosen_fc != PCPU_FC_PAGE) {
188189
const size_t dyn_size = PERCPU_MODULE_RESERVE +

linux.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
all:
2+
make J=2

mm/vmalloc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,13 @@ struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
23562356
unsigned long base, start, end, last_end;
23572357
bool purged = false;
23582358

2359+
{
2360+
int i;
2361+
for (i=0; i<nr_vms; i++) {
2362+
printk(KERN_ERR "%s: offsets[%d]=%d, size[%d]=%d\n",
2363+
__FUNCTION__, i, offsets[i], i, sizes[i], i);
2364+
}
2365+
}
23592366
/* verify parameters and allocate data structures */
23602367
BUG_ON(align & ~PAGE_MASK || !is_power_of_2(align));
23612368
for (last_area = 0, area = 0; area < nr_vms; area++) {

0 commit comments

Comments
 (0)