summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-14 22:17:47 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-14 22:17:47 +0200
commit5f6a145800a9e67c638f3ee05e43bb12fafffb48 (patch)
tree8d2ee202be2ad2ba56bc5a1903063e896a294baa /source3/lib/util.c
parent9c00fb4aa68ac7b044e954906e5ed20e039373a3 (diff)
downloadsamba-5f6a145800a9e67c638f3ee05e43bb12fafffb48.tar.gz
samba-5f6a145800a9e67c638f3ee05e43bb12fafffb48.tar.bz2
samba-5f6a145800a9e67c638f3ee05e43bb12fafffb48.zip
s3/profiling: don't use CLOCK_PROCESS_CPUTIME_ID
that clock is a CPU burnometer but we need a chronometer for profiling.
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 315f3897d6..3303894e0e 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2737,23 +2737,6 @@ bool procid_is_local(const struct server_id *pid)
#endif
}
-int this_is_smp(void)
-{
-#if defined(HAVE_SYSCONF)
-
-#if defined(SYSCONF_SC_NPROC_ONLN)
- return (sysconf(_SC_NPROC_ONLN) > 1) ? 1 : 0;
-#elif defined(SYSCONF_SC_NPROCESSORS_ONLN)
- return (sysconf(_SC_NPROCESSORS_ONLN) > 1) ? 1 : 0;
-#else
- return 0;
-#endif
-
-#else
- return 0;
-#endif
-}
-
/****************************************************************
Check if offset/length fit into bufsize. Should probably be
merged with is_offset_safe, but this would require a rewrite