Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/cherry-xenmp]: src/sys/arch/xen/xen Do not register the same callback mo...
details: https://anonhg.NetBSD.org/src/rev/9df07ebe5e48
branches: cherry-xenmp
changeset: 765619:9df07ebe5e48
user: cherry <cherry%NetBSD.org@localhost>
date: Mon Jul 25 17:29:43 2011 +0000
description:
Do not register the same callback more than once.
diffstat:
sys/arch/xen/xen/clock.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r b055635a6bc5 -r 9df07ebe5e48 sys/arch/xen/xen/clock.c
--- a/sys/arch/xen/xen/clock.c Sat Jul 23 09:21:52 2011 +0000
+++ b/sys/arch/xen/xen/clock.c Mon Jul 25 17:29:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.54.6.1 2011/06/03 13:27:42 cherry Exp $ */
+/* $NetBSD: clock.c,v 1.54.6.2 2011/07/25 17:29:43 cherry Exp $ */
/*
*
@@ -29,7 +29,7 @@
#include "opt_xen.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.54.6.1 2011/06/03 13:27:42 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.54.6.2 2011/07/25 17:29:43 cherry Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -452,7 +452,9 @@
"hardclock");
#ifdef DOM0OPS
- callout_init(&xen_timepush_co, 0);
+ if (!tcdone) { /* Do this only once */
+ callout_init(&xen_timepush_co, 0);
+ }
#endif
evtch = bind_virq_to_evtch(VIRQ_TIMER);
aprint_verbose("Xen clock: using event channel %d\n", evtch);
Home |
Main Index |
Thread Index |
Old Index