diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-02-11 07:14:57 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-12 05:59:45 -0500 |
commit | e9fc78230cb77647eb79d4b2f7c4d6c070f611f1 (patch) | |
tree | 831910a2a15b5a553c35bd4c6d77e476419054f7 /arch | |
parent | 7279dc3e914635ab4b288ec39383272a06c466f3 (diff) |
[ARM] 5389/1: Make sure the pmd entries are visible by the secondary CPU
The __cpu_up() function in arch/arm/kernel/smp.c sets the pmd entries
without flushing or cleaning them.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 55fa7ff96a3e..7801aac3c043 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -93,6 +93,7 @@ int __cpuinit __cpu_up(unsigned int cpu) | |||
93 | pmd = pmd_offset(pgd + pgd_index(PHYS_OFFSET), PHYS_OFFSET); | 93 | pmd = pmd_offset(pgd + pgd_index(PHYS_OFFSET), PHYS_OFFSET); |
94 | *pmd = __pmd((PHYS_OFFSET & PGDIR_MASK) | | 94 | *pmd = __pmd((PHYS_OFFSET & PGDIR_MASK) | |
95 | PMD_TYPE_SECT | PMD_SECT_AP_WRITE); | 95 | PMD_TYPE_SECT | PMD_SECT_AP_WRITE); |
96 | flush_pmd_entry(pmd); | ||
96 | 97 | ||
97 | /* | 98 | /* |
98 | * We need to tell the secondary core where to find | 99 | * We need to tell the secondary core where to find |
@@ -130,6 +131,7 @@ int __cpuinit __cpu_up(unsigned int cpu) | |||
130 | secondary_data.pgdir = 0; | 131 | secondary_data.pgdir = 0; |
131 | 132 | ||
132 | *pmd = __pmd(0); | 133 | *pmd = __pmd(0); |
134 | clean_pmd_entry(pmd); | ||
133 | pgd_free(&init_mm, pgd); | 135 | pgd_free(&init_mm, pgd); |
134 | 136 | ||
135 | if (ret) { | 137 | if (ret) { |