Module Name: src
Committed By: cherry
Date: Mon Jan 9 13:35:42 UTC 2012
Modified Files:
src/sys/arch/xen/xen: clock.c
Log Message:
Remove redundant use of curcpu().
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/arch/xen/xen/clock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/clock.c
diff -u src/sys/arch/xen/xen/clock.c:1.59 src/sys/arch/xen/xen/clock.c:1.60
--- src/sys/arch/xen/xen/clock.c:1.59 Mon Jan 9 13:33:38 2012
+++ src/sys/arch/xen/xen/clock.c Mon Jan 9 13:35:42 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.59 2012/01/09 13:33:38 cherry Exp $ */
+/* $NetBSD: clock.c,v 1.60 2012/01/09 13:35:42 cherry Exp $ */
/*
*
@@ -29,7 +29,7 @@
#include "opt_xen.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.59 2012/01/09 13:33:38 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.60 2012/01/09 13:35:42 cherry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -237,7 +237,7 @@ xen_wall_time(struct timespec *wt)
* Under Xen3, shadow->ts is the wall time less system time
* get_vcpu_time() will update shadow
*/
- nsec = get_vcpu_time(curcpu());
+ nsec = get_vcpu_time(ci);
*wt = shadow->ts;
nsec += wt->tv_nsec;
} while (!time_values_up_to_date(ci));