x86: warn of incorrect cpu_khz on AMD systems
commit8652cb4b0d87accbe78725fd2a13be2787059649
authorPrarit Bhargava <prarit@redhat.com>
Wed, 12 Nov 2008 18:35:00 +0000 (12 13:35 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 12 Nov 2008 18:57:35 +0000 (12 19:57 +0100)
tree201f712a14998d01aca56ae8ed0d683423f47bdd
parent6cf87efbc7a3676e0ad7c9622ec6aec244a593bc
x86: warn of incorrect cpu_khz on AMD systems

Impact: add debug check

If none of the perfctrs are free when calculating cpu_khz we default to
using ctr 3 (ie, we just choose 3).  This may lead to an incorrect tsc
freq value which can cause the system to be unstable.

To aid in future debugging, WARN the user of a potential problem.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/time_64.c