Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161393
b: refs/heads/master
c: 5fc5174
h: refs/heads/master
i:
  161391: 4ae8980
v: v3
  • Loading branch information
Venkatesh Pallipadi authored and H. Peter Anvin committed Aug 26, 2009
1 parent 9b9d6b6 commit a0eca4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5400743db5a06a4e6e298725a2044c40edcb27b9
refs/heads/master: 5fc517466dd3d0fc6d2a5180ca6792e60344d8be
13 changes: 3 additions & 10 deletions trunk/arch/x86/mm/pat.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
if (new_type) {
if (req_type == -1)
*new_type = _PAGE_CACHE_WB;
else if (req_type == _PAGE_CACHE_WC)
*new_type = _PAGE_CACHE_UC_MINUS;
else
*new_type = req_type & _PAGE_CACHE_MASK;
}
Expand Down Expand Up @@ -577,7 +579,7 @@ int kernel_map_sync_memtype(u64 base, unsigned long size, unsigned long flags)
{
unsigned long id_sz;

if (!pat_enabled || base >= __pa(high_memory))
if (base >= __pa(high_memory))
return 0;

id_sz = (__pa(high_memory) < base + size) ?
Expand Down Expand Up @@ -677,9 +679,6 @@ int track_pfn_vma_copy(struct vm_area_struct *vma)
unsigned long vma_size = vma->vm_end - vma->vm_start;
pgprot_t pgprot;

if (!pat_enabled)
return 0;

/*
* For now, only handle remap_pfn_range() vmas where
* is_linear_pfn_mapping() == TRUE. Handling of
Expand Down Expand Up @@ -715,9 +714,6 @@ int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t *prot,
resource_size_t paddr;
unsigned long vma_size = vma->vm_end - vma->vm_start;

if (!pat_enabled)
return 0;

/*
* For now, only handle remap_pfn_range() vmas where
* is_linear_pfn_mapping() == TRUE. Handling of
Expand All @@ -743,9 +739,6 @@ void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn,
resource_size_t paddr;
unsigned long vma_size = vma->vm_end - vma->vm_start;

if (!pat_enabled)
return;

/*
* For now, only handle remap_pfn_range() vmas where
* is_linear_pfn_mapping() == TRUE. Handling of
Expand Down

0 comments on commit a0eca4f

Please sign in to comment.