From: "Jan Beulich" Subject: Re: [PATCH v2 7/9] x86/intel_pstate: add a booting param to select the driver to load Date: Wed, 03 Jun 2015 12:50:40 +0100 Message-ID: <556F06300200007800080DFC@mail.emea.novell.com> References: <1463125872-14337-1-git-send-email-wei.w.wang@intel.com> <556498FC020000780007DF2A@mail.emea.novell.com> <286AC319A985734F985F78AFA26841F797A66A@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <286AC319A985734F985F78AFA26841F797A66A@shsmsx102.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei W Wang Cc: "jinsong.liu@alibaba-inc.com" , "xen-devel@lists.xen.org" , "wei.liu2@citrix.com" , "ian.campbell@citrix.com" , "andrew.cooper3@citrix.com" List-Id: xen-devel@lists.xenproject.org >>> On 03.06.15 at 10:07, wrote: > On 26/05/2015 22:02, Jan Beulich wrote >> >>> On 13.05.16 at 09:51, wrote: >> > --- a/xen/arch/x86/acpi/cpufreq/cpufreq.c >> > +++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c >> > --- a/xen/arch/x86/acpi/cpufreq/intel_pstate.c >> > +++ b/xen/arch/x86/acpi/cpufreq/intel_pstate.c >> > @@ -766,6 +766,8 @@ static struct cpufreq_driver intel_pstate_driver = { >> > .name = "intel_pstate", >> > }; >> > >> > +int __initdata load_intel_pstate = 0; >> >> static bool_t > > I think we cannot use "static" here, since load_intel_pstate is also used in > cpufreq.c to select which driver to load. Iirc I had also requested to deal with that (as it looks pretty hackish right now). Jan