Home | History | Annotate | Download | only in bin

Lines Matching full:cpuinfo

294     """Read /proc/cpuinfo and convert to a list of dicts."""
295 cpuinfo = []
296 with open('/proc/cpuinfo', 'r') as f:
301 cpuinfo.append(cpu)
307 # cpuinfo usually ends in a blank line, so this shouldn't happen.
308 cpuinfo.append(cpu)
309 return cpuinfo
314 f = open('/proc/cpuinfo', 'r')
315 cpuinfo = f.readlines()
317 if list_grep(cpuinfo, '^cpu.*(RS64|POWER3|Broadband Engine)'):
319 elif list_grep(cpuinfo, '^cpu.*POWER4'):
321 elif list_grep(cpuinfo, '^cpu.*POWER5'):
323 elif list_grep(cpuinfo, '^cpu.*POWER6'):
325 elif list_grep(cpuinfo, '^cpu.*POWER7'):
327 elif list_grep(cpuinfo, '^cpu.*PPC970'):
329 elif list_grep(cpuinfo, 'ARM'):
331 elif list_grep(cpuinfo, '^flags.*:.* lm .*'):
333 elif list_grep(cpuinfo, 'CPU.*implementer.*0x41'):
341 f = open('/proc/cpuinfo', 'r')
342 cpuinfo = f.readlines()
344 if list_grep(cpuinfo, 'EXYNOS5'):
346 elif list_grep(cpuinfo, 'Tegra'):
348 elif list_grep(cpuinfo, 'Rockchip'):
403 cpuinfo = get_cpuinfo()[0]
404 if cpuinfo['vendor_id'] != 'GenuineIntel':
406 family_model = '%02X_%02X' % (int(cpuinfo['cpu family']),
407 int(cpuinfo['model']))
427 """number of CPUs in the local machine according to /proc/cpuinfo"""
433 cpuinfo = get_cpuinfo()
435 return len(cpuinfo) or 1
442 cpuinfo = get_cpuinfo()
444 for cpu in cpuinfo:
450 cpuinfo = get_cpuinfo()[0]
451 return int(cpuinfo['cpu_family'])
455 cpuinfo = get_cpuinfo()
456 vendors = [cpu['vendor_id'] for cpu in cpuinfo]