diff options
Diffstat (limited to 'recipes-kernel/linux/linux-3.0.6/acp3448v2/0006-backport-mmu_clear_feature-function.patch')
-rw-r--r-- | recipes-kernel/linux/linux-3.0.6/acp3448v2/0006-backport-mmu_clear_feature-function.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-3.0.6/acp3448v2/0006-backport-mmu_clear_feature-function.patch b/recipes-kernel/linux/linux-3.0.6/acp3448v2/0006-backport-mmu_clear_feature-function.patch new file mode 100644 index 0000000..5c716f7 --- /dev/null +++ b/recipes-kernel/linux/linux-3.0.6/acp3448v2/0006-backport-mmu_clear_feature-function.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 2f2b38fd9d9d21099e1593537b4feb4be4fa1f31 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jerry Pei <jerry.pei@enea.com> | ||
3 | Date: Mon, 23 Apr 2012 15:01:44 +0800 | ||
4 | Subject: [PATCH 6/7] backport mmu_clear_feature() function from mel-linux-3.1.0 | ||
5 | |||
6 | Signed-off-by: Jerry Pei <jerry.pei@enea.com> | ||
7 | --- | ||
8 | arch/powerpc/include/asm/mmu.h | 5 +++++ | ||
9 | 1 files changed, 5 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h | ||
12 | index 4138b21..c80f7f5 100644 | ||
13 | --- a/arch/powerpc/include/asm/mmu.h | ||
14 | +++ b/arch/powerpc/include/asm/mmu.h | ||
15 | @@ -120,6 +120,11 @@ static inline int mmu_has_feature(unsigned long feature) | ||
16 | return (cur_cpu_spec->mmu_features & feature); | ||
17 | } | ||
18 | |||
19 | +static inline void mmu_clear_feature(unsigned long feature) | ||
20 | +{ | ||
21 | + cur_cpu_spec->mmu_features &= ~feature; | ||
22 | +} | ||
23 | + | ||
24 | extern unsigned int __start___mmu_ftr_fixup, __stop___mmu_ftr_fixup; | ||
25 | |||
26 | /* MMU initialization (64-bit only fo now) */ | ||
27 | -- | ||
28 | 1.7.0.4 | ||
29 | |||