]> git.baikalelectronics.ru Git - kernel.git/commit
x86, PAT: Consolidate code in pat_x_mtrr_type() and reserve_memtype()
authorSuresh Siddha <suresh.b.siddha@intel.com>
Thu, 9 Apr 2009 21:26:51 +0000 (14:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 11:55:48 +0000 (13:55 +0200)
commit3412ba555af150977485043006a488916657d352
treecd7ae3c0d0e20d96874c95a36403f54720d05fa6
parente80f80ef64d1ca3654e5f4e9bad8f2709ca3e252
x86, PAT: Consolidate code in pat_x_mtrr_type() and reserve_memtype()

Fix pat_x_mtrr_type() to use UC_MINUS when the mtrr type return UC. This
is to be  consistent with ioremap() and ioremap_nocache() which uses
UC_MINUS.

Consolidate the code such that reserve_memtype() also uses
pat_x_mtrr_type() when the caller doesn't specify any special attribute
(non WB attribute).

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