1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
# Description: Support SMP machines for the alpha-architecture
# Author: Helge Kreutzmann <debian@helgefjell.de>
# Last-Update: 2005-11-18
Index: linuxinfo-1.1.8-29/linuxinfo_alpha.c
===================================================================
--- linuxinfo-1.1.8-29.orig/linuxinfo_alpha.c 2010-02-01 21:35:22.568944749 +0100
+++ linuxinfo-1.1.8-29/linuxinfo_alpha.c 2010-02-01 21:34:58.401311000 +0100
@@ -11,6 +11,7 @@
1.0.0 AIB 199803?? Initial development
1.0.1 AIB 20000405 Now detects MHz, code rewritten
1.0.2 AIB 20010809 Added getphysicalmemory() call
+ 1.0.3 KRE 20051118 Include <string.h>
This is the Alpha port of linuxinfo
@@ -18,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "linuxinfo.h"
@@ -58,6 +60,12 @@
else
strcpy(hw->hw_megahertz, "?");
}
+ if (!(strncmp(temp_string, "cpus active", strlen("cpus active"))))
+ {
+ // FIXME Check which counting method really works
+ // (and bogomips ok?)
+ processors = atoi(temp_string2);
+ }
}
sprintf(hw->hw_memory, LONGSPEC, getphysicalmemory());
|