Messages in this thread | | | Date | Tue, 15 Nov 2005 17:16:37 +0100 | From | Gerd Knorr <> | Subject | Re: [PATCH 1/10] Cr4 is valid on some 486s |
| |
Zachary Amsden wrote: > You still need to preserve the originals so that you can patch in both > directions. In the dynamic scenario, you need a multi-way set of > alternatives, with the most conservative of those compiled in inline.
Sure, alternatives_smp() puts both versions into the .altinstr_replacement section because of that ;)
The idea is to have SMP compiled in and let the normal apply_alternatives() handle the SMP->UP patching case using the new feature bit. apply_alternatives_smp() handles UP->SMP patching when you plug in a new virtual CPU.
cheers,
Gerd
- 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/
| |