From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 04/41] arm/acpi : add arm specific acpi header file Date: Mon, 18 May 2015 14:12:16 +0100 Message-ID: <5559E530.3060508@gmail.com> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> <1431893048-5214-5-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-5-git-send-email-parth.dixit@linaro.org> 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 , xen-devel@lists.xen.org Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, christoffer.dall@linaro.org List-Id: xen-devel@lists.xenproject.org Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: > +#ifndef _ASM_ARM64_ACPI_H > +#define _ASM_ARM64_ACPI_H s/_ASM_ARM64_ACPI_H/_ASM_ARM_ACPI_H/ > + > +#include > + > +#define COMPILER_DEPENDENT_INT64 long long > +#define COMPILER_DEPENDENT_UINT64 unsigned long long > + > +extern bool_t acpi_disabled; > +/* Basic configuration for ACPI */ > +static inline void disable_acpi(void) > +{ > + acpi_disabled = 1; > +} It makes a little sense to add the prototype of acpi_disabled without effectively declaring it. Also, the code is very similar to the x86. It would make sense to factorize it (disable_acpi, acpi parameters...) in a common place. > +#endif /*_ASM_ARM_ACPI_H*/ > Regards, -- Julien Grall