Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148883
b: refs/heads/master
c: 8e97aef
h: refs/heads/master
i:
  148881: 791df59
  148879: be39723
v: v3
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed May 28, 2009
1 parent 3a840a5 commit 58ce38e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 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: d7c3c9a609563868d8a70e220399d06a25aba095
refs/heads/master: 8e97aef5f43ec715f394bc15015ff263b80c3ad6
23 changes: 0 additions & 23 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,29 +555,6 @@ int mce_notify_user(void)
return 0;
}

/* see if the idle task needs to notify userspace: */
static int
mce_idle_callback(struct notifier_block *nfb, unsigned long action,
void *unused)
{
/* IDLE_END should be safe - interrupts are back on */
if (action == IDLE_END && test_thread_flag(TIF_MCE_NOTIFY))
mce_notify_user();

return NOTIFY_OK;
}

static struct notifier_block mce_idle_notifier = {
.notifier_call = mce_idle_callback,
};

static __init int periodic_mcheck_init(void)
{
idle_notifier_register(&mce_idle_notifier);
return 0;
}
__initcall(periodic_mcheck_init);

/*
* Initialize Machine Checks for a CPU.
*/
Expand Down

0 comments on commit 58ce38e

Please sign in to comment.