linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/5] Minor cleanups to kernel pte handling
Date: Fri, 20 Jan 2012 10:34:33 +0000	[thread overview]
Message-ID: <20120120103433.GF1068@n2100.arm.linux.org.uk> (raw)

This series of five patches cleans up the pte handling for users of
the 'TOP_PTE' - those CPUs which require special handling of cache
aliases and the like.

TOP_PTE() always was ugly, so this patch set gets rid of it, in favour
of a couple of helper functions (set_top_pte() and get_top_pte()).
set_top_pte() contains the necessary local TLB flush to ensure that
the update will be seen by the MMU.

We also centralize the virtual addresses used for these mappings into
arch/arm/mm/mm.h.

Finally, we transform pfn_pte(page_to_pfn(page), prot) to
mk_pte(page, prot) as we don't need to open-code this operation, and
we have this helper anyway.

 arch/arm/mm/copypage-v4mc.c   |    9 ++-------
 arch/arm/mm/copypage-v6.c     |   20 ++++++--------------
 arch/arm/mm/copypage-xscale.c |    9 +--------
 arch/arm/mm/flush.c           |   14 +++++---------
 arch/arm/mm/highmem.c         |   21 ++++++++-------------
 arch/arm/mm/mm.h              |   26 +++++++++++++++++++++++++-
 6 files changed, 47 insertions(+), 52 deletions(-)

             reply	other threads:[~2012-01-20 10:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 10:34 Russell King - ARM Linux [this message]
2012-01-20 10:35 ` [PATCH 1/5] ARM: pgtable: move TOP_PTE address definitions to arch/arm/mm/mm.h Russell King - ARM Linux
2012-01-25 11:20   ` Catalin Marinas
2012-01-20 10:35 ` [PATCH 2/5] ARM: pgtable: use mk_pte rather than pfn_pte(page_to_pfn()) Russell King - ARM Linux
2012-01-25 11:23   ` Catalin Marinas
2012-01-20 10:35 ` [PATCH 3/5] ARM: pgtable: consolidate set_pte_ext(TOP_PTE, ...) + tlb flush Russell King - ARM Linux
2012-01-25 11:32   ` Catalin Marinas
2012-01-26 20:08     ` Russell King - ARM Linux
2012-01-20 10:36 ` [PATCH 4/5] ARM: pgtable: provide get_top_pte() to complement set_top_pte() Russell King - ARM Linux
2012-01-25 11:33   ` Catalin Marinas
2012-01-20 10:36 ` [PATCH 5/5] ARM: pgtable: get rid of TOP_PTE() Russell King - ARM Linux
2012-01-25 11:34   ` Catalin Marinas

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=20120120103433.GF1068@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.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).