arm64: refine the code for primary core checking

We can find caller of z_arm64_mmu_init is on primary
core or not, so no need to check mpidr, just add a
function parameter.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan 2021-04-15 11:49:55 +08:00 committed by Anas Nashif
commit 7889364771
4 changed files with 7 additions and 7 deletions

View file

@ -195,7 +195,7 @@ struct arm_mmu_ptables {
extern const struct arm_mmu_config mmu_config;
struct k_thread;
void z_arm64_mmu_init(void);
void z_arm64_mmu_init(bool is_primary_core);
void z_arm64_thread_pt_init(struct k_thread *thread);
void z_arm64_swap_ptables(struct k_thread *thread);