summaryrefslogtreecommitdiffstats
path: root/perl-install/c/smp.c
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2002-07-02 07:38:10 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2002-07-02 07:38:10 +0000
commit198fc661b9c5a379ac7542a6d19c4a469ef86abc (patch)
tree8f2e94773504b15312337c3db06fcdf2d316420e /perl-install/c/smp.c
parentbbd22e10555ec3af094c32287341c1f61633cebf (diff)
downloaddrakx-backup-do-not-use-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar
drakx-backup-do-not-use-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar.gz
drakx-backup-do-not-use-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar.bz2
drakx-backup-do-not-use-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar.xz
drakx-backup-do-not-use-198fc661b9c5a379ac7542a6d19c4a469ef86abc.zip
- TODO: Update ia64 check with /proc/pal/cpuX ?
- TODO: Update x86_64 check when SMP machines are actually available - Conditionalize compilation of main() with TEST macro
Diffstat (limited to 'perl-install/c/smp.c')
-rw-r--r--perl-install/c/smp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/c/smp.c b/perl-install/c/smp.c
index b885de850..baf786cc6 100644
--- a/perl-install/c/smp.c
+++ b/perl-install/c/smp.c
@@ -489,18 +489,21 @@ int detectSMP(void)
#elif __powerpc__
return isSMP = ppcDetectSMP();
#elif __ia64__
+ /* TODO: Update to check against /proc/pal/cpuX */
return isSMP = 1;
+#elif __x86_64__
+ /* TODO: Update when SMP machines are there */
+ return isSMP = 0;
#else
#error unknown architecture
#endif
}
-#if 0
-main() {
+#if TEST
+int main() {
if (detectSMP())
printf("has smp\n");
else
printf("no smp\n");
}
-
#endif