Re: [RFC PATCH] x86: Kill notsc

From: Borislav Petkov
Date: Mon Oct 19 2015 - 04:16:23 EST


On Sun, Oct 18, 2015 at 09:47:21PM -0700, Andy Lutomirski wrote:
> I'm a bit confused. Is it currently the case that, if you boot a
> normal kernel on a TSC-less machine without notsc, it fails?

No, it shouldn't fail because we're checking CPUID flags.

The point of this patch is purely cleaning up stuff and getting rid
of all the notsc/tsc_disabled logic. What is more tempting, however,
is getting rid of the static key in native_sched_clock. It is almost
pointless complexity and we don't really need it.

AFAIK, only some early 486s and 586s don't have TSC and they can disable
CONFIG_X86_TSC. Which they do, actually, if you choose M486 or M586 in
Kconfig.

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/