Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324008
b: refs/heads/master
c: b597591
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Tony Luck committed Aug 3, 2012
1 parent 26760cd commit 00cde10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea22571c8fd912f28e2525f7112bbb84b474ff3a
refs/heads/master: b5975917a3e5f93b5d1c95561aab0aa44327baea
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/cpu/mcheck/mce-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ static void raise_exception(struct mce *m, struct pt_regs *pregs)
}

static cpumask_var_t mce_inject_cpumask;
static DEFINE_MUTEX(mce_inject_mutex);

static int mce_raise_notify(unsigned int cmd, struct pt_regs *regs)
{
Expand Down Expand Up @@ -229,7 +230,10 @@ static ssize_t mce_write(struct file *filp, const char __user *ubuf,
* so do it a jiffie or two later everywhere.
*/
schedule_timeout(2);

mutex_lock(&mce_inject_mutex);
raise_mce(&m);
mutex_unlock(&mce_inject_mutex);
return usize;
}

Expand Down

0 comments on commit 00cde10

Please sign in to comment.