|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH V3 8/8] xen/arm: make domain_max_vcpus be alias of max_vcpus in struct domain
From: Chen Baozi <baozich@xxxxxxxxx>
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 <baozich@xxxxxxxxx>
---
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |