|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [mini-os master] Clean arch/x86/time.c
commit a6763f9ef8f7224e1b55cd8a2ac9bdcd867da4ec
Author: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
AuthorDate: Sun Apr 10 00:46:31 2016 +0200
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Apr 15 11:07:43 2016 +0100
Clean arch/x86/time.c
block_domain() does not actually use the value returned by gettimeofday.
Fix indent in monotonic_clock() along the way.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
---
arch/x86/time.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/x86/time.c b/arch/x86/time.c
index 2c8d033..cf5fab0 100644
--- a/arch/x86/time.c
+++ b/arch/x86/time.c
@@ -160,7 +160,7 @@ uint64_t monotonic_clock(void)
local_time_version = shadow.version;
rmb();
time = shadow.system_timestamp + get_nsec_offset();
- if (!time_values_up_to_date())
+ if (!time_values_up_to_date())
get_time_values_from_xen();
rmb();
} while (local_time_version != shadow.version);
@@ -199,8 +199,6 @@ int gettimeofday(struct timeval *tv, void *tz)
void block_domain(s_time_t until)
{
- struct timeval tv;
- gettimeofday(&tv, NULL);
ASSERT(irqs_disabled());
if(monotonic_clock() < until)
{
--
generated by git-patchbot for /home/xen/git/mini-os.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |