summaryrefslogtreecommitdiff
path: root/sal/osl/unx/system.c
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-03 20:59:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-04 10:05:56 +0200
commitbd08874073eab31501eceeda640340bcc97385a2 (patch)
tree0805a9371b250a66c14229ff6b76e62b3ec317b6 /sal/osl/unx/system.c
parentc5db1e15193bcd498703c4f06a428fab9f4a18a0 (diff)
Remove dead interlock code:
* Remove interlck_x86.s leftover from 417c85bf582e0d1dbabb7b0f16d60a394d537e61 "fdo#72598 Remove SunStudio cruft from code base." * osl_isSingleCPU is always 0. Change-Id: I44f633d503af0a033a977e0f812e6bd6e4282fca
Diffstat (limited to 'sal/osl/unx/system.c')
-rw-r--r--sal/osl/unx/system.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c
index 0562289394a4..a234fce2a13a 100644
--- a/sal/osl/unx/system.c
+++ b/sal/osl/unx/system.c
@@ -345,36 +345,6 @@ char *fcvt(double value, int ndigit, int *decpt, int *sign)
#endif
-#if ( defined(__GNUC__) && (defined(X86) || defined(X86_64)) )\
- || ( defined(SOLARIS) && defined(__i386) )
-
-/* Safe default */
-int osl_isSingleCPU = 0;
-
-/* Determine if we are on a multiprocessor/multicore/HT x86/x64 system
- *
- * The lock prefix for atomic operations in osl_[inc|de]crementInterlockedCount()
- * comes with a cost and is especially expensive on pre HT x86 single processor
- * systems, where it isn't needed at all.
- *
- * This should be run as early as possible, thus it's placed in the init section
- */
-#if defined(_SC_NPROCESSORS_CONF) /* i.e. MACOSX for Intel doesn't have this */
-#if defined(__GNUC__)
-void osl_interlockedCountCheckForSingleCPU(void) __attribute__((constructor));
-#endif
-
-void osl_interlockedCountCheckForSingleCPU(void)
-{
- /* In case sysconfig fails be on the safe side,
- * consider it a multiprocessor/multicore/HT system */
- if ( sysconf(_SC_NPROCESSORS_CONF) == 1 ) {
- osl_isSingleCPU = 1;
- }
-}
-#endif /* defined(_SC_NPROCESSORS_CONF) */
-#endif
-
//might be useful on other platforms, but doesn't compiler under MACOSX anyway
#if defined(__GNUC__) && defined(LINUX)
//force the __data_start symbol to exist in any executables that link against