summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2011-05-10 15:05:27 +0000
committeravg <avg@FreeBSD.org>2011-05-10 15:05:27 +0000
commitf59b74bdc18cd1f0bd842f251a3a29f20688c6ad (patch)
tree5e79b2b89a2a91ad19a3a2ab9ce0f97faa678b62 /sys/cddl
parent668ea399d06981caf3a66d0444270bf139db60fc (diff)
downloadFreeBSD-src-f59b74bdc18cd1f0bd842f251a3a29f20688c6ad.zip
FreeBSD-src-f59b74bdc18cd1f0bd842f251a3a29f20688c6ad.tar.gz
dtrace: remove unused code
Which is also useless, IMO. MFC after: 5 days
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/dev/dtrace/amd64/dtrace_subr.c22
-rw-r--r--sys/cddl/dev/dtrace/i386/dtrace_subr.c22
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 102ea04..a081f67 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;
@@ -434,7 +414,7 @@ dtrace_gethrtime_init(void *arg)
pc = pcpu_find(i);
map = PCPU_GET(cpumask) | 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 50793c4..2753ffc 100644
--- a/sys/cddl/dev/dtrace/i386/dtrace_subr.c
+++ b/sys/cddl/dev/dtrace/i386/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;
@@ -434,7 +414,7 @@ dtrace_gethrtime_init(void *arg)
pc = pcpu_find(i);
map = PCPU_GET(cpumask) | 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);
OpenPOWER on IntegriCloud