Commit 7debf53d authored by Edward Wang's avatar Edward Wang
Browse files

Util: bring back /proc/cpuinfo scraping

Some devices (notably Google TV) have "none" in their CPU_ABI fields.
parent 63b96cdc
......@@ -281,6 +281,17 @@ public class Util {
BufferedReader br = new BufferedReader(fileReader);
String line;
while((line = br.readLine()) != null) {
if(!hasArmV7 && line.contains("ARMv7")) {
hasArmV7 = true;
hasArmV6 = true; /* Armv7 is backwards compatible to < v6 */
}
if(!hasArmV7 && !hasArmV6 && line.contains("ARMv6"))
hasArmV6 = true;
// "clflush size" is a x86-specific cpuinfo tag.
// (see kernel sources arch/x86/kernel/cpu/proc.c)
if(!(hasArmV6 || hasArmV7 || hasX86) && line.contains("clflush size"))
hasX86 = true;
// TODO: MIPS - "microsecond timers"; see arch/mips/kernel/proc.c
if(!hasNeon && line.contains("neon"))
hasNeon = true;
if(!hasFpu && line.contains("vfp"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment