Skip to content

Commit a183ad1

Browse files
committed
cpuid_arm: fix detection when cpuinfo uses "Processor"
instead of "model name"
1 parent 4f83217 commit a183ad1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpuid_arm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int detect(void)
9090
while (fgets(buffer, sizeof(buffer), infile))
9191
{
9292

93-
if (!strncmp("model name", buffer, 10))
93+
if ((!strncmp("model name", buffer, 10)) || (!strncmp("Processor", buffer, 9)))
9494
{
9595
p = strchr(buffer, ':') + 2;
9696
break;

0 commit comments

Comments
 (0)