hardinfo

Check-in [7bbad8a228]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:ARM CPU: detect name from either "Processor" or "model name"
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:7bbad8a2283fd1aa6a7c2829b8202c51f56dcd08
User & Date: jamesbond 2015-04-19 08:40:38
Context
2015-05-01
16:44
hwmon: make sure we find sensors even if it does not start with 1 [http://murga-linux.com/puppy/viewtopic.php?p=841760#841760] Leaf check-in: 0782efc2e6 user: jamesbond tags: trunk
2015-04-19
08:40
ARM CPU: detect name from either "Processor" or "model name" check-in: 7bbad8a228 user: jamesbond tags: trunk
2015-04-07
13:51
ARM fixes. check-in: 8b8b4188f2 user: jamesbond tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modules/devices/arm/processor.c.

34
35
36
37
38
39
40


41
42
43
44
45
46
47
48
    while (fgets(buffer, 128, cpuinfo)) {
	gchar **tmp = g_strsplit(buffer, ":", 2);

	if (tmp[0] && tmp[1]) {
	    tmp[0] = g_strstrip(tmp[0]);
	    tmp[1] = g_strstrip(tmp[1]);



	    get_str("model name", processor->model_name);
	    get_str("Features", processor->flags);
	    get_float("BogoMIPS", processor->bogomips);

	    get_str("Hardware", processor->has_fpu);
	}
	g_strfreev(tmp);
    }







>
>
|







34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    while (fgets(buffer, 128, cpuinfo)) {
	gchar **tmp = g_strsplit(buffer, ":", 2);

	if (tmp[0] && tmp[1]) {
	    tmp[0] = g_strstrip(tmp[0]);
	    tmp[1] = g_strstrip(tmp[1]);

		get_str("Processor", processor->model_name);
		if (!processor->model_name)
			get_str("model name", processor->model_name);
	    get_str("Features", processor->flags);
	    get_float("BogoMIPS", processor->bogomips);

	    get_str("Hardware", processor->has_fpu);
	}
	g_strfreev(tmp);
    }