]> git.baikalelectronics.ru Git - kernel.git/commit
x86, CPA: Change idmap attribute before ioremap attribute setup
authorSuresh Siddha <suresh.b.siddha@intel.com>
Thu, 9 Apr 2009 21:26:47 +0000 (14:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 11:55:46 +0000 (13:55 +0200)
commit25d833cf932a3cba993fb1009a2913196b2611be
treece6a8a51aadd84364025b0a2c7bb649c0ac15f7c
parent7a30a27e7e9478180f5a112c3bed9a3d855b1047
x86, CPA: Change idmap attribute before ioremap attribute setup

Change the identity mapping with the requested attribute first, before
we setup the virtual memory mapping with the new requested attribute.

This makes sure that there is no window when identity map'ed attribute
may disagree with ioremap range on the attribute type.

This also avoids doing cpa on the ioremap'ed address twice (first in
ioremap_page_range and then in ioremap_change_attr using vaddr), and
should improve ioremap performance a bit.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
LKML-Reference: <20090409212708.373330000@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c