mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
libcpuid: better support for Core 2 processors: Wolfdale, Penryn, Merom - more robust detection code
cpuid_tool: the --load flag didn't have any effect with queries; fixed tests: added a trivial testing framework, added 7 tests git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@28 3b4be424-7ac5-41d7-8526-f4ddcb85d872
This commit is contained in:
parent
931dc5bb9a
commit
7774c94046
5 changed files with 818 additions and 15 deletions
|
@ -551,7 +551,7 @@ int main(int argc, char** argv)
|
|||
/* OK, process all queries. */
|
||||
if ((!need_report || !only_clock_queries) && num_requests > 0) {
|
||||
/* Identify the CPU. Make it do cpuid_get_raw_data() itself */
|
||||
if (check_need_raw_data() && cpu_identify(NULL, &data) < 0) {
|
||||
if (check_need_raw_data() && cpu_identify(&raw, &data) < 0) {
|
||||
if (!need_quiet)
|
||||
fprintf(stderr,
|
||||
"Error identifying the CPU: %s\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue