Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350261
b: refs/heads/master
c: 4d899be
h: refs/heads/master
i:
  350259: c5e0039
v: v3
  • Loading branch information
Tejun Heo committed Dec 28, 2012
1 parent 3bfc01a commit cdecc4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: ba0c96cd9a361693b0bae409510d614dc0e26d0f
refs/heads/master: 4d899be584d4b4c5d6b49d655176b25cebf6ff1a
14 changes: 3 additions & 11 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,8 @@ int mce_available(struct cpuinfo_x86 *c)

static void mce_schedule_work(void)
{
if (!mce_ring_empty()) {
struct work_struct *work = &__get_cpu_var(mce_work);
if (!work_pending(work))
schedule_work(work);
}
if (!mce_ring_empty())
schedule_work(&__get_cpu_var(mce_work));
}

DEFINE_PER_CPU(struct irq_work, mce_irq_work);
Expand Down Expand Up @@ -1351,12 +1348,7 @@ int mce_notify_irq(void)
/* wake processes polling /dev/mcelog */
wake_up_interruptible(&mce_chrdev_wait);

/*
* There is no risk of missing notifications because
* work_pending is always cleared before the function is
* executed.
*/
if (mce_helper[0] && !work_pending(&mce_trigger_work))
if (mce_helper[0])
schedule_work(&mce_trigger_work);

if (__ratelimit(&ratelimit))
Expand Down

0 comments on commit cdecc4f

Please sign in to comment.