From: "Jan Beulich" Subject: Re: [PATCH v2 02/41] arm/acpi: Build pmstat for x86 only Date: Wed, 20 May 2015 16:12:15 +0100 Message-ID: <555CC06F020000780007C4DD@mail.emea.novell.com> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> <1431893048-5214-3-git-send-email-parth.dixit@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431893048-5214-3-git-send-email-parth.dixit@linaro.org> 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: Parth Dixit Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, xen-devel@lists.xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, christoffer.dall@linaro.org List-Id: xen-devel@lists.xenproject.org >>> On 17.05.15 at 22:03, wrote: > Pmstat is currently not supported for arm in xen. > Configure and build pmstat for x86 architecture only. Same here as for patch 1. If the architecture can be expected to eventually support a feature, I'd generally prefer the architecture to get necessary stubs added over fiddling with common code. > --- a/xen/common/sysctl.c > +++ b/xen/common/sysctl.c > @@ -170,6 +170,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) > op->u.availheap.avail_bytes <<= PAGE_SHIFT; > break; > > +#ifdef CONFIG_X86 > #ifdef HAS_ACPI > case XEN_SYSCTL_get_pmstat: > ret = do_get_pm_info(&op->u.get_pmstat); Please fold the two #if-s into one, or even replace the HAS_ACPI one if this really needs to be done. Jan