diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-09-26 14:38:52 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-09-26 14:38:52 +0000 |
commit | e44a5f7ac2b14755cdc3dc5f0f1eb02788eea6d9 (patch) | |
tree | d79755fcee78b35ecc17596b9675eab26fa9ded4 /sys | |
parent | 98900c61d93a4ab3a9b5379320229914a6d5084a (diff) |
Use the cpuid vendor string instead of the model string when enabling
VIA specific amd64 code. Makes the code work with Eden X2 processors
which have the same model/family as a Nano but don't claim to be one
in the model string.
from bytevolcano at Safe-mail.net
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/identcpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c index 99c2028fc98..d924afb2980 100644 --- a/sys/arch/amd64/amd64/identcpu.c +++ b/sys/arch/amd64/amd64/identcpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identcpu.c,v 1.50 2013/08/24 23:45:31 mlarkin Exp $ */ +/* $OpenBSD: identcpu.c,v 1.51 2013/09/26 14:38:51 jsg Exp $ */ /* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /* @@ -568,7 +568,7 @@ identifycpu(struct cpu_info *ci) if (!strcmp(cpu_vendor, "AuthenticAMD")) amd64_errata(ci); - if (strncmp(mycpu_model, "VIA Nano processor", 18) == 0) { + if (!strcmp(cpu_vendor, "CentaurHauls")) { ci->cpu_setup = via_nano_setup; #ifndef SMALL_KERNEL strlcpy(ci->ci_sensordev.xname, ci->ci_dev->dv_xname, |