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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Pavel Machek <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Dave Jones <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Gerd Knorr <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Linus Torvalds <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Gerd Knorr <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Gerd Knorr <[email protected]>
- Re: [PATCH 1/10] Cr4 is valid on some 486s
- From: Zachary Amsden <[email protected]>
- [PATCH 1/10] Cr4 is valid on some 486s
- Prev by Date: Re: [PATCH 1/10] Cr4 is valid on some 486s
- Next by Date: Re: [PATCH 1/10] Cr4 is valid on some 486s
- Previous by thread: Re: [PATCH 1/10] Cr4 is valid on some 486s
- Next by thread: Re: [PATCH 1/10] Cr4 is valid on some 486s
- Index(es):