From 2f2b38fd9d9d21099e1593537b4feb4be4fa1f31 Mon Sep 17 00:00:00 2001 From: Jerry Pei Date: Mon, 23 Apr 2012 15:01:44 +0800 Subject: [PATCH 6/7] backport mmu_clear_feature() function from mel-linux-3.1.0 Signed-off-by: Jerry Pei --- arch/powerpc/include/asm/mmu.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h index 4138b21..c80f7f5 100644 --- a/arch/powerpc/include/asm/mmu.h +++ b/arch/powerpc/include/asm/mmu.h @@ -120,6 +120,11 @@ static inline int mmu_has_feature(unsigned long feature) return (cur_cpu_spec->mmu_features & feature); } +static inline void mmu_clear_feature(unsigned long feature) +{ + cur_cpu_spec->mmu_features &= ~feature; +} + extern unsigned int __start___mmu_ftr_fixup, __stop___mmu_ftr_fixup; /* MMU initialization (64-bit only fo now) */ -- 1.7.0.4