Skip to content

cpuid_arm: fix detection when cpuinfo uses "Processor"#424

Merged
xianyi merged 1 commit intoOpenMathLib:developfrom
ihnorton:fix_arm_cpuid
Jul 31, 2014
Merged

cpuid_arm: fix detection when cpuinfo uses "Processor"#424
xianyi merged 1 commit intoOpenMathLib:developfrom
ihnorton:fix_arm_cpuid

Conversation

@ihnorton
Copy link
Copy Markdown
Contributor

This patch fixes cpuid on arm when /proc/cpuinfo identifies the cpu by Processor rather than model name.

On my system (Samsung Chromebook XE303C12 / Exynos5 / Cortex A15 with Ubuntu 12.04), cpuinfo has the following output:

user@chrubuntu:~/dev/OpenBLAS$ cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 4 (v7l)
processor       : 0
BogoMIPS        : 1694.10

processor       : 1
BogoMIPS        : 1694.10

Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc0f
CPU revision    : 4

Hardware        : SAMSUNG EXYNOS5 (Flattened Device Tree)
Revision        : 0000
Serial          : 0000000000000000

(based on some limited google searches, I believe that some other ARM systems have such output, but I do not know what is the general convention)

xianyi added a commit that referenced this pull request Jul 31, 2014
cpuid_arm: fix detection when cpuinfo uses "Processor"
@xianyi xianyi merged commit 27af6e3 into OpenMathLib:develop Jul 31, 2014
@ihnorton ihnorton deleted the fix_arm_cpuid branch July 31, 2014 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants