From: Thomas Gleixner <tglx@linutronix.de>
To: Fenghua Yu <fenghua.yu@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Valdis Kletnieks <valdis.kletnieks@vt.edu>, x86 <x86@kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86/umwait: Fix error handling in umwait_init()
Date: Sat, 10 Aug 2019 15:09:06 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.21.1908101507300.7324@nanos.tec.linutronix.de> (raw)
In-Reply-To: <alpine.DEB.2.21.1908100718580.21433@nanos.tec.linutronix.de>
On Sat, 10 Aug 2019, Thomas Gleixner wrote:
> On Fri, 9 Aug 2019, Fenghua Yu wrote:
> > +/*
> > + * The CPU hotplug callback sets the control MSR to the original control
> > + * value.
> > + */
> > +static int umwait_cpu_offline(unsigned int cpu)
> > +{
> > + /*
> > + * This code is protected by the CPU hotplug already and
> > + * orig_umwait_control_cached is never changed after it caches
> > + * the original control MSR value in umwait_init(). So there
> > + * is no race condition here.
> > + */
> > + wrmsr(MSR_IA32_UMWAIT_CONTROL, orig_umwait_control_cached, 0);
>
> Even my brain compiler emits an error here.
Didn't parse correctly due to not enough coffee and dirty glasses. Sorry
for the noise.
Thanks,
tglx
next prev parent reply other threads:[~2019-08-10 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-10 1:40 Fenghua Yu
2019-08-10 5:25 ` Thomas Gleixner
2019-08-10 13:09 ` Thomas Gleixner [this message]
2019-08-12 12:55 ` [tip:x86/urgent] " tip-bot for Fenghua Yu
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=alpine.DEB.2.21.1908101507300.7324@nanos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=bp@alien8.de \
--cc=fenghua.yu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=valdis.kletnieks@vt.edu \
--cc=x86@kernel.org \
/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®