Message ID | 1469265163-1491-6-git-send-email-aneesh.kumar@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c index defb2998b818..8b0b0b51e8aa 100644 --- a/arch/powerpc/lib/feature-fixups.c +++ b/arch/powerpc/lib/feature-fixups.c @@ -177,6 +177,12 @@ void apply_feature_fixups(void) &__start___fw_ftr_fixup, &__stop___fw_ftr_fixup); #endif do_final_fixups(); + /* + * init jump label so that cpu and mmu feature check can be optimized + * using jump label. We should have all the cpu/mmu features finalized + * by now. + */ + jump_label_init(); } #ifdef CONFIG_FTR_FIXUP_SELFTEST
Call jump_label_init early so that can use static keys for cpu and mmu feature check. We should have finalzed all the cpu/mmu features when we call setup_system and we also did feature fixup for ASM based code. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> --- arch/powerpc/lib/feature-fixups.c | 6 ++++++ 1 file changed, 6 insertions(+)