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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
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@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]