diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-03-04 13:07:50 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 17:40:52 +0200 |
commit | 3c2047cd32b1a8c782d7efab72707e7daa251625 (patch) | |
tree | 79a3481d5f7b637626d0cf346dc1f1042d68c07f /include/asm-x86 | |
parent | x86: debug pmd_bad() (diff) | |
download | linux-3c2047cd32b1a8c782d7efab72707e7daa251625.tar.xz linux-3c2047cd32b1a8c782d7efab72707e7daa251625.zip |
x86: if we cannot calibrate the TSC, we panic.
The current tsc_init() clears the TSC feature bit if the TSC khz
cannot be calculated, causing us to panic in
arch/x86/kernel/cpu/bugs.c check_config(). We should simply mark it
unstable.
Frankly, someone should take an axe to this code. mark_tsc_unstable()
not only marks it unstable, but sets tsc_enabled to 0, which seems
redundant but is actually important here because means it won't be
used by sched_clock() either. Perhaps a tristate enum "UNUSABLE,
UNSTABLE, OK" would be clearer, and separate mark_tsc_unstable() and
mark_tsc_broken() functions?
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
0 files changed, 0 insertions, 0 deletions