]> git.neil.brown.name Git - history.git/commit
[PATCH] sched_clock() fix
authorAndrew Morton <akpm@osdl.org>
Tue, 18 Nov 2003 16:14:51 +0000 (08:14 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 18 Nov 2003 16:14:51 +0000 (08:14 -0800)
commitd0821d8bd38158e5c93026ff25473e0b47511864
tree06266bda2d9e37ec49890840a6d544a6c135704e
parent5c38b5da60b6f144ede479fcfb90cd9303103868
[PATCH] sched_clock() fix

From: Thomas Schlicter

sched_clock() will try to use the TSC even if the system is not using the TSC
as a time source.  It causes bad scheduling decisions and poor interactivity.

The problem was exhibited by the patch which uses ACPI PM as a time source,
but could also happen if the system is using the PIT.
arch/i386/kernel/timers/timer_tsc.c