diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2002-07-02 07:38:10 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2002-07-02 07:38:10 +0000 |
commit | 198fc661b9c5a379ac7542a6d19c4a469ef86abc (patch) | |
tree | 8f2e94773504b15312337c3db06fcdf2d316420e /perl-install/c/smp.c | |
parent | bbd22e10555ec3af094c32287341c1f61633cebf (diff) | |
download | drakx-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar drakx-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar.gz drakx-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar.bz2 drakx-198fc661b9c5a379ac7542a6d19c4a469ef86abc.tar.xz drakx-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.c | 9 |
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 |