Skip to content

Commit

Permalink
[PATCH] CPU hotplug broken with 2GB VMSPLIT
Browse files Browse the repository at this point in the history
In VMSPLIT mode, kernel PGD might have more entries than user space.

Acked-by: Jens Axboe <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Shaohua Li authored and Linus Torvalds committed Dec 8, 2006
1 parent c642f9e commit 3b1bdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu)

/* init low mem mapping */
clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS,
KERNEL_PGD_PTRS);
min_t(unsigned long, KERNEL_PGD_PTRS, USER_PGD_PTRS));
flush_tlb_all();
schedule_work(&info.task);
wait_for_completion(&done);
Expand Down

0 comments on commit 3b1bdf4

Please sign in to comment.