diff options
author | Peter Jones <pjones@redhat.com> | 2005-12-05 22:02:51 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-12-05 22:02:51 +0000 |
commit | 0a80fcd67c027a03ebdb430d0c74b5834c18f72a (patch) | |
tree | 5e49abe4b026353269a82a181b64ead1bbe8885d | |
parent | fd2514b35933c67dedfbea17a728d917bf346c16 (diff) | |
download | anaconda-0a80fcd67c027a03ebdb430d0c74b5834c18f72a.tar.gz anaconda-0a80fcd67c027a03ebdb430d0c74b5834c18f72a.tar.xz anaconda-0a80fcd67c027a03ebdb430d0c74b5834c18f72a.zip |
- do the ppc checks a little better (not off by one)
-rw-r--r-- | isys/smp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/isys/smp.c b/isys/smp.c index ebd067331..3b2dbaef0 100644 --- a/isys/smp.c +++ b/isys/smp.c @@ -105,7 +105,7 @@ int sparcDetectSMP(void) /* FIXME: this won't work on iSeries */ int powerpcDetectSMP(void) { - int issmp = -1; + int ncpus = 0; FILE *f; struct findNode *list = (struct findNode *) malloc(sizeof(struct findNode)); struct pathNode *n; @@ -124,15 +124,14 @@ int powerpcDetectSMP(void) while (fgets (buff, 1024, f) != NULL) { if (!strncmp (buff, "cpu", 3)) { - issmp++; - //break; + ncpus++; } } fclose(f); } } - return issmp; + return ncpus; } #endif /* __powerpc__ */ |