aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/aim/mmu_radix.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/aim/mmu_radix.c')
-rw-r--r--sys/powerpc/aim/mmu_radix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/powerpc/aim/mmu_radix.c b/sys/powerpc/aim/mmu_radix.c
index 45f7bef8bcc9..a12142fc2d7b 100644
--- a/sys/powerpc/aim/mmu_radix.c
+++ b/sys/powerpc/aim/mmu_radix.c
@@ -5937,6 +5937,10 @@ mmu_radix_page_set_memattr(vm_page_t m, vm_memattr_t ma)
{
CTR3(KTR_PMAP, "%s(%p, %#x)", __func__, m, ma);
+
+ if (m->md.mdpg_cache_attrs == ma)
+ return;
+
m->md.mdpg_cache_attrs = ma;
/*