Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen Remove redundant use of curcpu().



details:   https://anonhg.NetBSD.org/src/rev/027f5c588a1d
branches:  trunk
changeset: 772586:027f5c588a1d
user:      cherry <cherry%NetBSD.org@localhost>
date:      Mon Jan 09 13:35:42 2012 +0000

description:
Remove redundant use of curcpu().

diffstat:

 sys/arch/xen/xen/clock.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cc7d01ddd79b -r 027f5c588a1d sys/arch/xen/xen/clock.c
--- a/sys/arch/xen/xen/clock.c  Mon Jan 09 13:33:38 2012 +0000
+++ b/sys/arch/xen/xen/clock.c  Mon Jan 09 13:35:42 2012 +0000
@@ -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 @@
                 * 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));



Home | Main Index | Thread Index | Old Index