Displaying 4 results from an estimated 4 matches for "cpu_dev".
Did you mean:
cpu_devs
2019 May 15
1
[PATCH] Add support for Hygon Dhyana processor
...DOR_UNKNOWN 10
+#define X86_VENDOR_NUM 11
#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
diff --git a/com32/gpllib/cpuid.c b/com32/gpllib/cpuid.c
index 2abd0bda..0681dbce 100644
--- a/com32/gpllib/cpuid.c
+++ b/com32/gpllib/cpuid.c
@@ -60,6 +60,11 @@ static struct cpu_dev amd_cpu_dev = {
.c_ident = {"AuthenticAMD"}
};
+static struct cpu_dev hygon_cpu_dev = {
+ .c_vendor = "Hygon",
+ .c_ident = {"HygonGenuine"}
+};
+
static struct cpu_dev intel_cpu_dev = {
.c_vendor = "Intel",
.c_ident = {"GenuineI...
2020 Sep 16
0
[RFC PATCH] x86_64: Add support for Hygon Dhyana processor
...DOR_UNKNOWN 10
+#define X86_VENDOR_NUM 11
#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
diff --git a/com32/gpllib/cpuid.c b/com32/gpllib/cpuid.c
index 2abd0bda..0681dbce 100644
--- a/com32/gpllib/cpuid.c
+++ b/com32/gpllib/cpuid.c
@@ -60,6 +60,11 @@ static struct cpu_dev amd_cpu_dev = {
.c_ident = {"AuthenticAMD"}
};
+static struct cpu_dev hygon_cpu_dev = {
+ .c_vendor = "Hygon",
+ .c_ident = {"HygonGenuine"}
+};
+
static struct cpu_dev intel_cpu_dev = {
.c_vendor = "Intel",
.c_ident = {"GenuineI...
2011 Apr 02
2
[patch] ~420 seconds in cpu_detect
...gt;stepping = c->x86_mask;
print_timer(et, "family-vendor-model-stepping");
/* THIS TAKES 420 seconds
it blows up cuz c->x86_vendor is 255, > X86_VENDOR_NUM,
so code is overrunning memory - lucky result wasnt more severe.
strlcpy(cpu->vendor, cpu_devs[c->x86_vendor]->c_vendor,
sizeof(cpu->vendor));
*/
strlcpy(cpu->model, c->x86_vendor_id, sizeof(cpu->vendor));
strlcpy(cpu->model, c->x86_model_id, sizeof(cpu->model));
print_timer(et, "family-vendor strings");
cpu->num_cores = c-&...
2011 Apr 02
2
[patch] ~420 seconds in cpu_detect
...gt;stepping = c->x86_mask;
print_timer(et, "family-vendor-model-stepping");
/* THIS TAKES 420 seconds
it blows up cuz c->x86_vendor is 255, > X86_VENDOR_NUM,
so code is overrunning memory - lucky result wasnt more severe.
strlcpy(cpu->vendor, cpu_devs[c->x86_vendor]->c_vendor,
sizeof(cpu->vendor));
*/
strlcpy(cpu->model, c->x86_vendor_id, sizeof(cpu->vendor));
strlcpy(cpu->model, c->x86_model_id, sizeof(cpu->model));
print_timer(et, "family-vendor strings");
cpu->num_cores = c-&...