projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e7e241
)
[PATCH] i386: CPU hotplug broken with 2GB VMSPLIT
author
Shaohua Li
<shaohua.li@intel.com>
Sun, 24 Dec 2006 02:39:08 +0000
(21:39 -0500)
committer
Chris Wright
<chrisw@sous-sol.org>
Wed, 10 Jan 2007 19:05:20 +0000
(11:05 -0800)
In VMSPLIT mode, kernel PGD might have more entries than user space
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/i386/kernel/smpboot.c
patch
|
blob
|
history
diff --git
a/arch/i386/kernel/smpboot.c
b/arch/i386/kernel/smpboot.c
index 4bb8b77cd65b257b4b54a730f5c5e3cf46595f4a..b5f562eec6117fb0f3dfb4712fb38c38b76e1b34 100644
(file)
--- a/
arch/i386/kernel/smpboot.c
+++ b/
arch/i386/kernel/smpboot.c
@@
-1095,7
+1095,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(&task);
wait_for_completion(&done);