提交 1a37a3fd 编写于 作者: B Benjamin Herrenschmidt 提交者: Paul Mackerras

powerpc/mm: Add local_flush_tlb_mm() to SW loaded TLB implementations

This adds a local_flush_tlb_mm() call as a pre-requisite for some
SMP work for BookE processors.
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: NKumar Gala <galak@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 a58f053b
...@@ -40,6 +40,11 @@ extern void _tlbil_va(unsigned long address, unsigned int pid); ...@@ -40,6 +40,11 @@ extern void _tlbil_va(unsigned long address, unsigned int pid);
extern void _tlbia(void); extern void _tlbia(void);
#endif #endif
static inline void local_flush_tlb_mm(struct mm_struct *mm)
{
_tlbil_pid(mm->context.id);
}
static inline void flush_tlb_mm(struct mm_struct *mm) static inline void flush_tlb_mm(struct mm_struct *mm)
{ {
_tlbil_pid(mm->context.id); _tlbil_pid(mm->context.id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册