summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-08-20 16:27:16 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-08-20 16:27:16 +0000
commite7440c40677aacff60ced509fca25bf7ed7e5409 (patch)
tree05a01bd9b04723c237aeb81c28d6f0bbdbbaf298
parent08e5df1007b86a17d7d85e56188c8ce759ec77fc (diff)
downloaddrakx-e7440c40677aacff60ced509fca25bf7ed7e5409.tar
drakx-e7440c40677aacff60ced509fca25bf7ed7e5409.tar.gz
drakx-e7440c40677aacff60ced509fca25bf7ed7e5409.tar.bz2
drakx-e7440c40677aacff60ced509fca25bf7ed7e5409.tar.xz
drakx-e7440c40677aacff60ced509fca25bf7ed7e5409.zip
Use x86 smp detection scheme on amd64 instead of the ugly dmesg workaround.
-rw-r--r--perl-install/c/smp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/c/smp.c b/perl-install/c/smp.c
index 7e25302d1..2438418bb 100644
--- a/perl-install/c/smp.c
+++ b/perl-install/c/smp.c
@@ -92,7 +92,7 @@ int ppcDetectSMP(void)
}
#endif /* __powerpc__ */
-#ifdef __i386__
+#if defined(__i386__) || defined(__x86_64__)
/*
* Copyright (c) 1996, by Steve Passe
* All rights reserved.
@@ -495,8 +495,7 @@ int detectSMP(void)
/* TODO: Update to check against /proc/pal/cpuX */
return isSMP = 1;
#elif __x86_64__
- /* TODO: Update when SMP machines are there */
- return isSMP = 0;
+ return isSMP = intelDetectSMP() || intelDetectSMP_mptable();
#else
#error unknown architecture
#endif