Merge pull request #424 from ihnorton/fix_arm_cpuid

cpuid_arm: fix detection when cpuinfo uses "Processor"
This commit is contained in:
Zhang Xianyi 2014-07-31 13:54:07 +08:00
commit 27af6e35d3
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ int detect(void)
while (fgets(buffer, sizeof(buffer), infile)) while (fgets(buffer, sizeof(buffer), infile))
{ {
if (!strncmp("model name", buffer, 10)) if ((!strncmp("model name", buffer, 10)) || (!strncmp("Processor", buffer, 9)))
{ {
p = strchr(buffer, ':') + 2; p = strchr(buffer, ':') + 2;
break; break;