linux-mips
[Top] [All Lists]

Re: flush_kernel_vmap_range() invalidate_kernel_vmap_range() API not exi

To: Sergei Shtylyov <sshtylyov@mvista.com>
Subject: Re: flush_kernel_vmap_range() invalidate_kernel_vmap_range() API not exists for MIPS
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 20 Jun 2011 10:56:26 +0100
Cc: Christoph Hellwig <hch@lst.de>, naveen yadav <yad.naveen@gmail.com>, linux-mips@linux-mips.org
In-reply-to: <4DFCA2DD.9060707@mvista.com>
References: <AANLkTimkh2QLvupu+62NGrKfqRb_gC7KLCAKkEoS9N9N@mail.gmail.com> <20110325172709.GC8483@linux-mips.org> <BANLkTimo6BEgDnTh+sPVR+MELyxiwJoFGw@mail.gmail.com> <20110616180250.GA13025@lst.de> <20110617152028.GA14107@linux-mips.org> <4DFCA2DD.9060707@mvista.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
On Sat, Jun 18, 2011 at 05:06:37PM +0400, Sergei Shtylyov wrote:

> >+static inline void flush_kernel_vmap_range(void *vaddr, int size)
> >+{
> >+    if (cpu_has_dc_aliases)
> >+            __flush_kernel_vmap_range((unsigned long) vaddr, size);
> >+}
> >+
> >+static inline void invalidate_kernel_vmap_range(void *vaddr, int size)
> >+{
> >+    if (cpu_has_dc_aliases)
> >+            __flush_kernel_vmap_range((unsigned long) vaddr, size);
> 
>    Not __invalidate_kernel_vmap_range()?

No, for the moment both just do a writeback + invalidate.  I may change
that for something more efficient later once I understand the consequences
of this.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>