diff options
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 |