[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-9b718e758ac91f28b6cdd354ad5ee9c767daae74@git.kernel.org>
Date: Sun, 28 Oct 2012 10:16:39 -0700
From: tip-bot for Ingo Molnar <mingo@...nel.org>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
a.p.zijlstra@...llo.nl, peterz@...radead.org,
schwidefsky@...ibm.com, gerald.schaefer@...ibm.com,
ralf@...ux-mips.org, heiko.carstens@...ibm.com, tglx@...utronix.de,
sfr@...b.auug.org.au
Subject: [tip:numa/core] sched, numa, mm, s390/thp: Add pmd_mknotpresent()
Commit-ID: 9b718e758ac91f28b6cdd354ad5ee9c767daae74
Gitweb: http://git.kernel.org/tip/9b718e758ac91f28b6cdd354ad5ee9c767daae74
Author: Ingo Molnar <mingo@...nel.org>
AuthorDate: Sun, 28 Oct 2012 14:10:14 +0100
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Sun, 28 Oct 2012 17:31:21 +0100
sched, numa, mm, s390/thp: Add pmd_mknotpresent()
We'd like to make use of pmd_mknotpresent() in mm/, but
not all architectures have it. This patch adds the s390
version.
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
Cc: Heiko Carstens <heiko.carstens@...ibm.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Ralf Baechle <ralf@...ux-mips.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Gerald Schaefer <gerald.schaefer@...ibm.com>
Link: http://lkml.kernel.org/r/20121028131014.GA10754@gmail.com
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/s390/include/asm/pgtable.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index 098fc5a..b820ff1 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -1310,6 +1310,12 @@ static inline pmd_t pmd_mkyoung(pmd_t pmd)
return pmd;
}
+static inline pmd_t pmd_mknotpresent(pmd_t pmd)
+{
+ pmd_val(pmd) &= ~_SEGMENT_ENTRY_ORIGIN;
+ return pmd;
+}
+
#define __HAVE_ARCH_PMDP_TEST_AND_CLEAR_YOUNG
static inline int pmdp_test_and_clear_young(struct vm_area_struct *vma,
unsigned long address, pmd_t *pmdp)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists