Re: [PATCH][2.5] notsc option needs some attention/TLC
William Lee Irwin III (wli@holomorphy.com)
Sun, 10 Nov 2002 17:21:50 -0800
On Sat, Nov 09, 2002 at 10:51:27AM -0800, Linus Torvalds wrote:
> No.
> You have two different cases:
> - a kernel compiled for TSC-only. This one simply will not _work_ without
> a TSC, since it is statically compiled for the TSC case. Here, "notsc"
> simply cannot do anything, so it just prints a message saying that it
> doesn't work.
> - a "generic" kernel, which can do the TSC decision dynamically, will use
> the TSC flag in the CPU features field to decide whether to use the TSC
> or not. Here, "notsc" will clear the flag unconditionally, so even if
> your CPU claims to have a TSC, it won't get used.
> NOTE! We used to do a lot more statically, and on the whole the hard-coded
> CONFIG_X86_TSC usage has pretty much disappeared in modern kernels. It's
> used mainly by the "get_cycles()" macro, which is not all that commonly
> used any more (it used to be used by the scheduler, I think that's gone
> too these days).
Then the options have been mangled and it doesn't do this right anymore,
with the net result that there's no way to turn off TSC synch ever. I've
narrowed this down to config options setting CONFIG_X86_TSC for at least for
all cpu revisions > 586 plus unconditional TSC usage given CONFIG_X86_TSC.
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/