Re: [PATCH 3/3] EDAC: carve out AMD MCE decoding logic

From: Borislav Petkov
Date: Mon Oct 05 2009 - 11:17:08 EST


On Sat, Oct 03, 2009 at 09:18:07AM +0200, Ingo Molnar wrote:
> > > No, the locking was all that i meant. Using atomic_notifier would solve
> > > that. Make the default decoder low-prio, that way there's no need to do
> > > the callback save/restore sequence either.
> >
> > Ok, how's that for starters, it has been only compile-tested and it
> > looks straight-forward enough to me...
>
> looks good at first sight. There's two further simplifications you could
> do:

Ok, here we go, had to make sure we register the notifier only once
(done on the BSP now) since mcheck_init() runs on each CPU.

--