linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v3] sh: sh2a: Improve cache flush/invalidate functions
Date: Thu, 12 Jan 2012 04:11:30 +0000	[thread overview]
Message-ID: <20120112041130.GB28470@linux-sh.org> (raw)
In-Reply-To: <1326125327-30189-1-git-send-email-phil.edworthy@renesas.com>

On Mon, Jan 09, 2012 at 04:08:47PM +0000, Phil Edworthy wrote:
> The cache functions lock out interrupts for long periods; this patch
> reduces the impact when operating on large address ranges. In such
> cases it will:
> - Invalidate the entire cache rather than individual addresses.
> - Do nothing when flushing the operand cache in write-through mode.
> - When flushing the operand cache in write-back mdoe, index the
>   search for matching addresses on the cache entires instead of the
>   addresses to flush
> 
> Note: sh2a__flush_purge_region was only invalidating the operand
> cache, this adds flush.
> 
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> ---
> v3:
> 1. Refactored code to make it readable and correct formatting.
> 2. Added code to handle flushing large address ranges in
>    write-back mode.
> 
Looks good. Applied, thanks Phil.

      reply	other threads:[~2012-01-12  4:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 16:08 [PATCH v3] sh: sh2a: Improve cache flush/invalidate functions Phil Edworthy
2012-01-12  4:11 ` Paul Mundt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120112041130.GB28470@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).