diff options
author | Karsten Hopp <karsten@redhat.de> | 2001-06-20 21:15:47 +0000 |
---|---|---|
committer | Karsten Hopp <karsten@redhat.de> | 2001-06-20 21:15:47 +0000 |
commit | 2f5300e6a8d41ec45fc38806d61947518ce32663 (patch) | |
tree | 9870381d7ad2ee7f4aafa2a6c2f17969e36e0cf6 /isys/smp.c | |
parent | fa6cb866187230ce67cfa3147392667264c69f27 (diff) | |
download | anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.tar.gz anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.tar.xz anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.zip |
revert S390 changes
Diffstat (limited to 'isys/smp.c')
-rw-r--r-- | isys/smp.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/isys/smp.c b/isys/smp.c index a7e577d65..c7b467b1e 100644 --- a/isys/smp.c +++ b/isys/smp.c @@ -39,30 +39,6 @@ int alphaDetectSMP(void) } #endif /* __alpha__ */ -#if defined (__s390__) || defined (__s390x__) -int s390DetectSMP(void) -{ - int issmp = 0; - FILE *f; - - f = fopen("/proc/cpuinfo", "r"); - if (f) { - char buff[1024]; - - while (fgets (buff, 1024, f) != NULL) { - if (!strncmp (buff, "# processors : ", 18)) { - if (strtoul (buff + 18, NULL, 0) > 1) - issmp = 1; - break; - } - } - fclose(f); - } else - return -1; - - return issmp; -} -#endif /* __s390__ */ #ifdef __sparc__ int sparcDetectSMP(void) @@ -485,10 +461,6 @@ int detectSMP(void) return isSMP = alphaDetectSMP(); #elif __ia64__ return isSMP = 1; -#elif __s390__ - return isSMP = s390DetectSMP(); -#elif __s390x__ - return isSMP = s390DetectSMP(); #else #error unknown architecture #endif |