Re: [PATCH] x86 cpu selection (first hack)

Jeff Garzik
2002-05-30T23:22:19Z

J.A. Magallon wrote:

>- Make all and every cpu a checkbox, so you just say 'I want my kernel to
> support this and that CPU'. This kills the problem of the ordering, and
> adds one other advantage: you do not need to support intermediate CPUs,
> like 'i want my kernel to run ok on pentium-mmx (my firewall) and on
> p4 (my desktop). I will never run it on a PII, so do not include the
> hacks for PII'. And of course, 'If I run my p-mmx capable on a friend's
> PII and it eats his drive and burns his TV set, it is only _my_ fault'.
>
>Patch follows, comments are welcome. Next step is to begin to order the logic,
>but I wanted to ask first about this.
>
>

First cut seems like a good start...

Comments:
* use standard CML indentation
* use CONFIG_X86_ as the prefix for all config symbols you're creating
* Alan's comment seems fair, and also gives me a tangential idea: I
wonder if making the CPU features selectable is useful? i.e. provide an
actual config option for MMX memcpy, F00F bug, WP, etc. Normal (current)
logic is to look at the cpu selected, and deduce these options.

Jeff