Skip to content

Commit

Permalink
[ARM] 5389/1: Make sure the pmd entries are visible by the secondary CPU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Catalin Marinas authored and Russell King committed Feb 12, 2009
1 parent 7279dc3 commit e9fc782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
pmd = pmd_offset(pgd + pgd_index(PHYS_OFFSET), PHYS_OFFSET);
*pmd = __pmd((PHYS_OFFSET & PGDIR_MASK) |
PMD_TYPE_SECT | PMD_SECT_AP_WRITE);
flush_pmd_entry(pmd);

/*
* We need to tell the secondary core where to find
Expand Down Expand Up @@ -130,6 +131,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
secondary_data.pgdir = 0;

*pmd = __pmd(0);
clean_pmd_entry(pmd);
pgd_free(&init_mm, pgd);

if (ret) {
Expand Down

0 comments on commit e9fc782

Please sign in to comment.