[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 02/41] arm/acpi: Build pmstat for x86 only





On 20 May 2015 at 20:42, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>>> On 17.05.15 at 22:03, <parth.dixit@xxxxxxxxxx> 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.

ok, will add stubs in next patchset.
> --- 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.