Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129964
b: refs/heads/master
c: 9597134
h: refs/heads/master
v: v3
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Jan 21, 2009
1 parent 36c6e62 commit ea938e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 731f1872f4e8a0f1eabd49c3548207e79a421202
refs/heads/master: 9597134218300c045cf219be3664615e97cb239c
6 changes: 3 additions & 3 deletions trunk/arch/x86/mm/pat.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
req_type & _PAGE_CACHE_MASK);
}

if (new_type)
*new_type = actual_type;

/*
* For legacy reasons, some parts of the physical address range in the
* legacy 1MB region is treated as non-RAM (even when listed as RAM in
Expand All @@ -356,9 +359,6 @@ int reserve_memtype(u64 start, u64 end, unsigned long req_type,
new->end = end;
new->type = actual_type;

if (new_type)
*new_type = actual_type;

spin_lock(&memtype_lock);

if (cached_entry && start >= cached_start)
Expand Down

0 comments on commit ea938e0

Please sign in to comment.