diff options
author | Borislav Petkov <bp@suse.de> | 2015-11-23 11:12:21 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-11-24 09:15:54 +0100 |
commit | 99f925ce927e4ac313d9af8bd1bf55796e2cdcb1 (patch) | |
tree | 51a3708791496f4d60f895e6f07a628a8f7a68e3 /arch/x86/kvm/cpuid.h | |
parent | Linux 4.4-rc2 (diff) | |
download | linux-99f925ce927e4ac313d9af8bd1bf55796e2cdcb1.tar.xz linux-99f925ce927e4ac313d9af8bd1bf55796e2cdcb1.zip |
x86/cpu: Unify CPU family, model, stepping calculation
Add generic functions which calc family, model and stepping from
the CPUID_1.EAX leaf and stick them into the library we have.
Rename those which do call CPUID with the prefix "x86_cpuid" as
suggested by Paolo Bonzini.
No functionality change.
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1448273546-2567-2-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kvm/cpuid.h')
0 files changed, 0 insertions, 0 deletions