This is not the way to do it.
The line should read just
if (boot_cpu_data.x86_capability & 16) {
...
and that's it. Look at how 2.1.102 handles this: the cyrix-specific
setup code will zero out the TSC bit from the capability mask, because
Cyrix in essense does not _have_ a TSC that is correct.
Zeroing out the bit automatically means that everything in the kernel
that would try to use the TSC notices that it doesn't exist, and the
problem is solved. And the only cyrix-specific code is exactly where it
should be, ie in the cpuinfo setup code.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu