x86: don't use tsc_khz to calculate lpj if notsc is passed
authorAlok Kataria <akataria@vmware.com>
Mon, 3 Nov 2008 19:18:47 +0000 (11:18 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Nov 2008 08:55:26 +0000 (09:55 +0100)
commit70de9a97049e0ba79dc040868564408d5ce697f9
treea1bad7a88e347ecac20313e0a852ae1e4c82b63e
parent73557af5bf32c3db973050de1fb73423e8fc873e
x86: don't use tsc_khz to calculate lpj if notsc is passed

Impact: fix udelay when "notsc" boot parameter is passed

With notsc passed on commandline, tsc may not be used for
udelays, make sure that we do not use tsc_khz to calculate
the lpj value in such cases.

Reported-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Alok N Kataria <akataria@vmware.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/tsc.c