From 5f6a145800a9e67c638f3ee05e43bb12fafffb48 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 14 Sep 2010 22:17:47 +0200 Subject: s3/profiling: don't use CLOCK_PROCESS_CPUTIME_ID that clock is a CPU burnometer but we need a chronometer for profiling. --- source3/lib/util.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source3/lib') 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 -- cgit