Skip to content

Commit

Permalink
x86, mm: Call is_untracked_pat_range() rather than is_ISA_range()
Browse files Browse the repository at this point in the history
Checkin fd12a0d made the PAT
untracked range a platform configurable, but missed on occurrence of
is_ISA_range() which still refers to PAT-untracked memory, and
therefore should be using the configurable.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <20091119202341.GA4420@sgi.com>
  • Loading branch information
H. Peter Anvin committed Nov 24, 2009
1 parent fd12a0d commit 55a6ca2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#ifndef __ASSEMBLY__

#include <asm/x86_init.h>

/*
* ZERO_PAGE is a global shared page that is always zero: used
* for zero-mapped memory areas etc..
Expand Down Expand Up @@ -270,9 +272,9 @@ static inline int is_new_memtype_allowed(u64 paddr, unsigned long size,
unsigned long new_flags)
{
/*
* PAT type is always WB for ISA. So no need to check.
* PAT type is always WB for untracked ranges, so no need to check.
*/
if (is_ISA_range(paddr, paddr + size - 1))
if (x86_platform.is_untracked_pat_range(paddr, paddr + size - 1))
return 1;

/*
Expand Down

0 comments on commit 55a6ca2

Please sign in to comment.