lkml.org 
[lkml]   [2016]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH 03/14] sparc64: routines for basic mmu shared context structure management
From
From: Mike Kravetz <mike.kravetz@oracle.com>
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();

\
 
 \ /
  Last update: 2016-12-18 04:08    [W:0.412 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site