|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC PATCH v6 20/43] arm/p2m: Rename parameter in p2m_alloc_vmid
From: Sergej Proskurin <proskurin@xxxxxxxxxxxxx>
This commit does not change or introduce any additional functionality
but rather is a part of the following commit that alters the
functionality of the function "p2m_alloc_vmid".
This is commit 9/12 of the altp2m_init/altp2m_teardown routines phase.
Signed-off-by: Sergej Proskurin <proskurin@xxxxxxxxxxxxx>
---
xen/arch/arm/p2m.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
index fb03978a19af..2c43b6033360 100644
--- a/xen/arch/arm/p2m.c
+++ b/xen/arch/arm/p2m.c
@@ -286,24 +286,24 @@ int p2m_alloc_vmid(struct domain *d)
{
struct p2m_domain *p2m = p2m_get_hostp2m(d);
- int rc, nr;
+ int rc, vmid;
spin_lock(&vmid_alloc_lock);
- nr = find_first_zero_bit(vmid_mask, MAX_VMID);
+ vmid = find_first_zero_bit(vmid_mask, MAX_VMID);
- ASSERT(nr != INVALID_VMID);
+ ASSERT(vmid != INVALID_VMID);
- if ( nr == MAX_VMID )
+ if ( vmid == MAX_VMID )
{
rc = -EBUSY;
printk(XENLOG_ERR "p2m.c: dom%d: VMID pool exhausted\n", d->domain_id);
goto out;
}
- set_bit(nr, vmid_mask);
+ set_bit(vmid, vmid_mask);
- p2m->vmid = nr;
+ p2m->vmid = vmid;
rc = 0;
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |