From: Chen Baozi Subject: [PATCH V3 8/8] xen/arm: make domain_max_vcpus be alias of max_vcpus in struct domain Date: Thu, 28 May 2015 15:44:54 +0800 Message-ID: <1432799094-13602-9-git-send-email-cbz@baozis.org> References: <1432799094-13602-1-git-send-email-cbz@baozis.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YxsU4-0004q0-6h for xen-devel@lists.xenproject.org; Thu, 28 May 2015 07:44:08 +0000 In-Reply-To: <1432799094-13602-1-git-send-email-cbz@baozis.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: xen-devel@lists.xenproject.org Cc: Julien Grall , Chen Baozi , Ian Campbell List-Id: xen-devel@lists.xenproject.org From: Chen Baozi Since the maximum vcpu information is already saved in the struct domain, there is no need for domain_max_vpus to return the fixed value. Signed-off-by: Chen Baozi --- xen/include/asm-arm/domain.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-arm/domain.h index 603a20b..b4e38a2 100644 --- a/xen/include/asm-arm/domain.h +++ b/xen/include/asm-arm/domain.h @@ -261,10 +261,7 @@ struct arch_vcpu void vcpu_show_execution_state(struct vcpu *); void vcpu_show_registers(const struct vcpu *); -static inline unsigned int domain_max_vcpus(const struct domain *d) -{ - return MAX_VIRT_CPUS; -} +#define domain_max_vcpus(d) (d->max_vcpus) /* * Due to the restriction of GICv3, the number of vCPUs in AFF0 is -- 2.1.4