diff options
author | Shaohua Li <shaohua.li@intel.com> | 2006-12-08 05:41:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:29:09 -0500 |
commit | 3b1bdf4e08d6a8d4fae5a30224ed2c55bf1e43fc (patch) | |
tree | e1dc5845c234f13da786711a66383b6bd7b5b14f /arch/i386/kernel/smpboot.c | |
parent | c642f9e03b3ca04fc806ba5d8d34cc821382e525 (diff) |
[PATCH] CPU hotplug broken with 2GB VMSPLIT
In VMSPLIT mode, kernel PGD might have more entries than user space.
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/smpboot.c')
-rw-r--r-- | arch/i386/kernel/smpboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index 4bf0e3c83b8b..1e00b03163b9 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c | |||
@@ -1118,7 +1118,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) | |||
1118 | 1118 | ||
1119 | /* init low mem mapping */ | 1119 | /* init low mem mapping */ |
1120 | clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, | 1120 | clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, |
1121 | KERNEL_PGD_PTRS); | 1121 | min_t(unsigned long, KERNEL_PGD_PTRS, USER_PGD_PTRS)); |
1122 | flush_tlb_all(); | 1122 | flush_tlb_all(); |
1123 | schedule_work(&info.task); | 1123 | schedule_work(&info.task); |
1124 | wait_for_completion(&done); | 1124 | wait_for_completion(&done); |