]> git.baikalelectronics.ru Git - kernel.git/commit
x86: do not enable TSC notifier if we don't need it
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Aug 2008 18:52:06 +0000 (11:52 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 25 Aug 2008 00:16:28 +0000 (17:16 -0700)
commit1314515cc1e7f0e3b9b8edf8f27bbc0ac1fc7ede
tree46bdd7a9eb5cbb95458fc9839270d2e503fa6c4c
parentd3d847efb67a610b3df49082c377a558a6b22acd
x86: do not enable TSC notifier if we don't need it

Impact: crash on non-TSC-equipped CPUs

Don't enable the TSC notifier if we *either*:

1. don't have a CPU, or
2. have a CPU with constant TSC.

In either of those cases, the notifier is either damaging (1) or useless(2).

From: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/tsc.c