Package: linuxinfo / 1.1.8-34

18_sparc_update Patch series | download
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
38
39
40
41
42
43
44
45
46
47
# Description: Add more known models and alternate BogoMips routine
# Author: Ola Lundqvist <opal@debian.org>
# Author: Helge Kreutzmann <debian@helgefjell.de>
# Last-Update: 2006-10-17

Index: linuxinfo-1.1.8-29/linuxinfo_sparc.c
===================================================================
--- linuxinfo-1.1.8-29.orig/linuxinfo_sparc.c	2010-02-01 21:36:36.319827737 +0100
+++ linuxinfo-1.1.8-29/linuxinfo_sparc.c	2010-02-01 21:36:17.156117000 +0100
@@ -12,6 +12,8 @@
 	1.0.1	AIB	20000405	Rewritten
 	1.0.2	AIB	20010129	Fixed bug and added Fujitsu
 	1.0.3	AIB	20010909	Complete rewrite
+	1.0.4   HKM     20060723        Added more machines and fixed a typo
+	1.0.5   HKM     20061017        Added the Niagra
 
         This is the Sparc32 port of linuxinfo
 */
@@ -27,6 +29,7 @@
 static char *vendors[] =
 {
 	"Texas", "TI",
+	"TI", "TI",
 	"Fujitsu", "Fujitsu",
 	"Cypress", "Cypress",
 	"ROSS", "Ross Technologies",
@@ -46,6 +49,10 @@
 	"Texas Instruments, Inc. - SuperSparc 50", "SuperSparc 50",
 	"Texas Instruments, Inc. - SuperSparc 51", "SuperSparc 51",
 	"Texas Instruments, Inc. - SuperSparc 61", "SuperSparc 61",
+	"TI UltraSparc II  (BlackBird)","UltraSparc II (BlackBird)",
+	"TI UltraSparc IIi","UltraSparc IIi",
+	"TI UltraSparc IIi (Sabre)","UltraSparc IIi (Sabre)",
+	"UltraSparc T1 (Niagara)","UltraSparc T1 (Niagara)",
 	NULL, NULL
 };
 
@@ -92,6 +99,9 @@
 
 		if (!(strncmp(temp_string, "BogoMips", strlen("BogoMips"))))
 			sscanf(temp_string2, "%f", &tempbogo);
+
+		if (!(strncmp(temp_string, "Cpu0Bogo", strlen("Cpu0Bogo"))))
+			sscanf(temp_string2, "%f", &tempbogo);
 	}
 
         sprintf(hw->hw_memory, LONGSPEC, getphysicalmemory());