Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144738
b: refs/heads/master
c: e529992
h: refs/heads/master
v: v3
  • Loading branch information
Hidetoshi Seto authored and Ingo Molnar committed May 8, 2009
1 parent 23d0b95 commit 47c5e5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 33df4db04a79660150e1948e3296eeb451ac121b
refs/heads/master: e5299926d7459d9fa7c7f856983147817aedb10e
10 changes: 6 additions & 4 deletions trunk/arch/x86/kernel/cpu/mcheck/mce_intel_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ static void print_update(char *type, int *hdr, int num)
static void cmci_discover(int banks, int boot)
{
unsigned long *owned = (void *)&__get_cpu_var(mce_banks_owned);
unsigned long flags;
int hdr = 0;
int i;

spin_lock(&cmci_discover_lock);
spin_lock_irqsave(&cmci_discover_lock, flags);
for (i = 0; i < banks; i++) {
u64 val;

Expand Down Expand Up @@ -184,7 +185,7 @@ static void cmci_discover(int banks, int boot)
WARN_ON(!test_bit(i, __get_cpu_var(mce_poll_banks)));
}
}
spin_unlock(&cmci_discover_lock);
spin_unlock_irqrestore(&cmci_discover_lock, flags);
if (hdr)
printk(KERN_CONT "\n");
}
Expand All @@ -211,13 +212,14 @@ void cmci_recheck(void)
*/
void cmci_clear(void)
{
unsigned long flags;
int i;
int banks;
u64 val;

if (!cmci_supported(&banks))
return;
spin_lock(&cmci_discover_lock);
spin_lock_irqsave(&cmci_discover_lock, flags);
for (i = 0; i < banks; i++) {
if (!test_bit(i, __get_cpu_var(mce_banks_owned)))
continue;
Expand All @@ -227,7 +229,7 @@ void cmci_clear(void)
wrmsrl(MSR_IA32_MC0_CTL2 + i, val);
__clear_bit(i, __get_cpu_var(mce_banks_owned));
}
spin_unlock(&cmci_discover_lock);
spin_unlock_irqrestore(&cmci_discover_lock, flags);
}

/*
Expand Down

0 comments on commit 47c5e5e

Please sign in to comment.