From: Ingo Molnar <mingo@elte.hu>
To: Borislav Petkov <borislav.petkov@amd.com>
Cc: linux-kernel@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [RESEND PATCH] mce, edac: use an atomic notifier for MCEs decoding
Date: Mon, 12 Oct 2009 12:33:33 +0200 [thread overview]
Message-ID: <20091012103333.GB20051@elte.hu> (raw)
In-Reply-To: <20091007112038.GA2505@aftab>
* Borislav Petkov <borislav.petkov@amd.com> wrote:
> @@ -1420,6 +1428,10 @@ void __cpuinit mcheck_init(struct cpuinfo_x86 *c)
> mce_cpu_features(c);
> mce_init_timer();
> INIT_WORK(&__get_cpu_var(mce_work), mce_process_work);
> +
> + if (raw_smp_processor_id() == 0)
> + atomic_notifier_chain_register(&x86_mce_decoder_chain,
> + &mce_dec_nb);
> }
this bit should be done in a cleaner way, by introducing a boot init
function for MCE functionality.
(It's also broken if we boot on non-0 CPUs. Doesnt happen currently but
still.)
Also, the function names there are pretty messy - please do another,
rename patch that does something like:
mcheck_init() => mcheck_cpu_init()
mce_init() => __mcheck_cpu_init_generict()
mce_cpu_features() => __mcheck_cpu_init_vendor()
mce_init_timer() => __mcheck_cpu_init_timer()
etc.
I've applied your patch to x86/mce - please send delta patches to clean
up the other aspects of it.
Thanks,
Ingo
next prev parent reply other threads:[~2009-10-12 10:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 11:20 Borislav Petkov
2009-10-12 10:33 ` Ingo Molnar [this message]
2009-10-13 15:43 ` [PATCH 1/2] x86, mce: fixup mce naming nomenclature Borislav Petkov
2009-10-13 15:44 ` [PATCH 2/2] x86, mce: Add a global MCE init helper Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091012103333.GB20051@elte.hu \
--to=mingo@elte.hu \
--cc=borislav.petkov@amd.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®