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)
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>

No differences found