[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-b40c757964bbad76ecfa88eda9eb0b4d76dd8b40@git.kernel.org>
Date: Thu, 19 Mar 2009 13:27:28 GMT
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
tglx@...utronix.de, mingo@...e.hu, xen-devel@...ts.xensource.com,
jeremy.fitzhardinge@...rix.com
Subject: [tip:x86/mm] x86/32: no need to use set_pte_present in set_pte_vaddr
Commit-ID: b40c757964bbad76ecfa88eda9eb0b4d76dd8b40
Gitweb: http://git.kernel.org/tip/b40c757964bbad76ecfa88eda9eb0b4d76dd8b40
Author: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
AuthorDate: Wed, 18 Mar 2009 13:03:32 -0700
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 19 Mar 2009 14:04:18 +0100
x86/32: no need to use set_pte_present in set_pte_vaddr
Impact: cleanup, remove last user of set_pte_present
set_pte_vaddr() is only used to install ptes in fixmaps, and
should never be used to overwrite a present mapping.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>
Cc: Xen-devel <xen-devel@...ts.xensource.com>
LKML-Reference: <1237406613-2929-1-git-send-email-jeremy@...p.org>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/mm/pgtable_32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c
index f2e477c..46c8834 100644
--- a/arch/x86/mm/pgtable_32.c
+++ b/arch/x86/mm/pgtable_32.c
@@ -50,7 +50,7 @@ void set_pte_vaddr(unsigned long vaddr, pte_t pteval)
}
pte = pte_offset_kernel(pmd, vaddr);
if (pte_val(pteval))
- set_pte_present(&init_mm, vaddr, pte, pteval);
+ set_pte_at(&init_mm, vaddr, pte, pteval);
else
pte_clear(&init_mm, vaddr, pte);
--
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