From 198fc661b9c5a379ac7542a6d19c4a469ef86abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Tue, 2 Jul 2002 07:38:10 +0000 Subject: - 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 --- perl-install/c/smp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'perl-install') 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 -- cgit v1.2.1