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

[Xen-devel] [PATCH v2 6/7] add mspin_sleep function to time manager



From: Paul Semel <phentex@xxxxxxxxx>

Signed-off-by: Paul Semel <phentex@xxxxxxxxx>
---
 common/time.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/common/time.c b/common/time.c
index 67fe049..f75979a 100644
--- a/common/time.c
+++ b/common/time.c
@@ -125,6 +125,12 @@ static inline void spin_sleep(uint64_t t)
     nspin_sleep(nsec);
 }
 
+static inline void mspin_sleep(uint64_t t)
+{
+    uint64_t nsec = t * 1000000ul;
+    nspin_sleep(nsec);
+}
+
 /*
  * Local variables:
  * mode: C
-- 
2.16.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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