Thread (35 messages) 35 messages, 3 authors, 2016-12-21

Re: [RFC PATCH 03/14] sparc64: routines for basic mmu shared context structure management

From: David Miller <davem@davemloft.net>
Date: 2016-12-18 03:07:04
Also in: lkml, sparclinux

From: Mike Kravetz <redacted>
Date: Fri, 16 Dec 2016 10:35:26 -0800
+void smp_flush_shared_tlb_mm(struct mm_struct *mm)
+{
+	u32 ctx = SHARED_CTX_HWBITS(mm->context);
+
+	(void)get_cpu();		/* prevent preemption */
preempt_disable();
+
+	smp_cross_call(&xcall_flush_tlb_mm, ctx, 0, 0);
+	__flush_tlb_mm(ctx, SECONDARY_CONTEXT);
+
+	put_cpu();
preempt_enable();

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help