mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 18:24:14 +08:00
powerpc: Call jump_label_init() in apply_feature_fixups()
Call jump_label_init() early so that we can use static keys for CPU and MMU feature checks. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
e3f91083fa
commit
309b315b6e
@ -13,6 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
#include <linux/jump_label.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
@ -187,6 +188,13 @@ void __init apply_feature_fixups(void)
|
|||||||
&__start___fw_ftr_fixup, &__stop___fw_ftr_fixup);
|
&__start___fw_ftr_fixup, &__stop___fw_ftr_fixup);
|
||||||
#endif
|
#endif
|
||||||
do_final_fixups();
|
do_final_fixups();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialise jump label. This causes all the cpu/mmu_has_feature()
|
||||||
|
* checks to take on their correct polarity based on the current set of
|
||||||
|
* CPU/MMU features.
|
||||||
|
*/
|
||||||
|
jump_label_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init check_features(void)
|
static int __init check_features(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user