Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166415
b: refs/heads/master
c: e23a8b6
h: refs/heads/master
i:
  166413: 4d929a2
  166411: e59ead8
  166407: aae6cd4
  166399: 6aa0b1a
v: v3
  • Loading branch information
Roland Dreier authored and Ingo Molnar committed Sep 24, 2009
1 parent 7d1e657 commit 47e23ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: ea01c0d7315d6e3218fd22a6947c5b09305fcf65
refs/heads/master: e23a8b6a8f319c0f08b6ccef2dccbb37e7603dc2
7 changes: 5 additions & 2 deletions trunk/arch/x86/mm/pat.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ enum {
void pat_init(void)
{
u64 pat;
bool boot_cpu = !boot_pat_state;

if (!pat_enabled)
return;
Expand Down Expand Up @@ -122,8 +123,10 @@ void pat_init(void)
rdmsrl(MSR_IA32_CR_PAT, boot_pat_state);

wrmsrl(MSR_IA32_CR_PAT, pat);
printk(KERN_INFO "x86 PAT enabled: cpu %d, old 0x%Lx, new 0x%Lx\n",
smp_processor_id(), boot_pat_state, pat);

if (boot_cpu)
printk(KERN_INFO "x86 PAT enabled: cpu %d, old 0x%Lx, new 0x%Lx\n",
smp_processor_id(), boot_pat_state, pat);
}

#undef PAT
Expand Down

0 comments on commit 47e23ca

Please sign in to comment.