[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160112171426.20062fa8@yairi>
Date: Tue, 12 Jan 2016 17:14:26 -0800
From: Jacob Pan <jacob.jun.pan@...ux.intel.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
Linux PM <linux-pm@...r.kernel.org>,
Rafael Wysocki <rafael.j.wysocki@...el.com>,
Peter Zijlstra <peterz@...radead.org>,
X86 Kernel <x86@...nel.org>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
jacob.jun.pan@...ux.intel.com
Subject: Re: [PATCH 1/2] x86/msr: add on cpu read/modify/write function
On Sun, 20 Dec 2015 14:28:48 +0100 (CET)
Thomas Gleixner <tglx@...utronix.de> wrote:
> So this is a copy of the above !SMP inline. What's wrong with
> providing:
>
> int rmwmsrl_safe(msr_no, clear_mask, set_mask)
>
> in x86/lib/msr.c and make the !SMP variant of rdmsrl_safe_on_cpu()
> and that variant for the SMP case a simple wrapper around it?
>
> static void remote_rmwmsrl_safe(void *info)
> {
> struct msr_action *ma = info;
>
> return rmwmsrl_safe(ma->msr, ma->clear_mask, ma->set_mask);
> }
>
> No gotos, no pointless code duplication. Just simple.
much better, just sent new code in v2. Sorry for the delay.
Thanks
Powered by blists - more mailing lists