aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/pgtable.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-05-02 11:24:10 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2014-05-09 12:03:15 -0400
commit98f7685ee69f871ba991089cb9685f0da07517ea (patch)
treef62bfc6c13d2e54c70349f47f85438f8d596fe36 /arch/arm64/include/asm/pgtable.h
parentfa48e6f780a681cdbc7820e33259edfe1a79b9e3 (diff)
arm64: barriers: make use of barrier options with explicit barriers
When calling our low-level barrier macros directly, we can often suffice with more relaxed behaviour than the default "all accesses, full system" option. This patch updates the users of dsb() to specify the option which they actually require. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/pgtable.h')
-rw-r--r--arch/arm64/include/asm/pgtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index 3de4ef8bfd82..e4c60d6e18b8 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -303,7 +303,7 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
303static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) 303static inline void set_pmd(pmd_t *pmdp, pmd_t pmd)
304{ 304{
305 *pmdp = pmd; 305 *pmdp = pmd;
306 dsb(); 306 dsb(ishst);
307} 307}
308 308
309static inline void pmd_clear(pmd_t *pmdp) 309static inline void pmd_clear(pmd_t *pmdp)
@@ -333,7 +333,7 @@ static inline pte_t *pmd_page_vaddr(pmd_t pmd)
333static inline void set_pud(pud_t *pudp, pud_t pud) 333static inline void set_pud(pud_t *pudp, pud_t pud)
334{ 334{
335 *pudp = pud; 335 *pudp = pud;
336 dsb(); 336 dsb(ishst);
337} 337}
338 338
339static inline void pud_clear(pud_t *pudp) 339static inline void pud_clear(pud_t *pudp)