diff options
author | attilio <attilio@FreeBSD.org> | 2011-05-10 15:54:37 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2011-05-10 15:54:37 +0000 |
commit | c3423abdb728d2bcf265d7bb7911cae39ddc1b83 (patch) | |
tree | 8f2f9bc68d0ccd7b1712bdafad681c222b985b63 /sys/cddl/dev/dtrace | |
parent | 396e1498b7d3d489c65cf73c4917943dd12a5d8f (diff) | |
parent | 2d672b24ae05acc7b0254e961a81da4e1b58db62 (diff) | |
download | FreeBSD-src-c3423abdb728d2bcf265d7bb7911cae39ddc1b83.zip FreeBSD-src-c3423abdb728d2bcf265d7bb7911cae39ddc1b83.tar.gz |
MFC
Diffstat (limited to 'sys/cddl/dev/dtrace')
-rw-r--r-- | sys/cddl/dev/dtrace/amd64/dtrace_subr.c | 22 | ||||
-rw-r--r-- | sys/cddl/dev/dtrace/i386/dtrace_subr.c | 22 |
2 files changed, 2 insertions, 42 deletions
diff --git a/sys/cddl/dev/dtrace/amd64/dtrace_subr.c b/sys/cddl/dev/dtrace/amd64/dtrace_subr.c index bc4b8b6..0b86eac 100644 --- a/sys/cddl/dev/dtrace/amd64/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/amd64/dtrace_subr.c @@ -359,26 +359,6 @@ static uint64_t nsec_scale; #define SCALE_SHIFT 28 static void -dtrace_gethrtime_init_sync(void *arg) -{ -#ifdef CHECK_SYNC - /* - * Delay this function from returning on one - * of the CPUs to check that the synchronisation - * works. - */ - uintptr_t cpu = (uintptr_t) arg; - - if (cpu == curcpu) { - int i; - for (i = 0; i < 1000000000; i++) - tgt_cpu_tsc = rdtsc(); - tgt_cpu_tsc = 0; - } -#endif -} - -static void dtrace_gethrtime_init_cpu(void *arg) { uintptr_t cpu = (uintptr_t) arg; @@ -435,7 +415,7 @@ dtrace_gethrtime_init(void *arg) map = PCPU_GET(cpumask); CPU_OR(&map, &pc->pc_cpumask); - smp_rendezvous_cpus(map, dtrace_gethrtime_init_sync, + smp_rendezvous_cpus(map, NULL, dtrace_gethrtime_init_cpu, smp_no_rendevous_barrier, (void *)(uintptr_t) i); diff --git a/sys/cddl/dev/dtrace/i386/dtrace_subr.c b/sys/cddl/dev/dtrace/i386/dtrace_subr.c index 7d460bc..412fc38 100644 --- a/sys/cddl/dev/dtrace/i386/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/i386/dtrace_subr.c @@ -360,26 +360,6 @@ static uint64_t nsec_scale; #define SCALE_SHIFT 28 static void -dtrace_gethrtime_init_sync(void *arg) -{ -#ifdef CHECK_SYNC - /* - * Delay this function from returning on one - * of the CPUs to check that the synchronisation - * works. - */ - uintptr_t cpu = (uintptr_t) arg; - - if (cpu == curcpu) { - int i; - for (i = 0; i < 1000000000; i++) - tgt_cpu_tsc = rdtsc(); - tgt_cpu_tsc = 0; - } -#endif -} - -static void dtrace_gethrtime_init_cpu(void *arg) { uintptr_t cpu = (uintptr_t) arg; @@ -436,7 +416,7 @@ dtrace_gethrtime_init(void *arg) map = PCPU_GET(cpumask); CPU_OR(&map, &pc->pc_cpumask); - smp_rendezvous_cpus(map, dtrace_gethrtime_init_sync, + smp_rendezvous_cpus(map, NULL, dtrace_gethrtime_init_cpu, smp_no_rendevous_barrier, (void *)(uintptr_t) i); |