From 5754d367ce2f41a1694eccef265a90db40b79d20 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Wed, 13 Jun 2018 22:49:50 +0800 Subject: [PATCH] HV: remove redundant code in cpu_secondary_init cpu_find_logical_id() is called redundantly, remove one. Signed-off-by: Victor Sun Acked-by: Eddie Dong --- hypervisor/arch/x86/cpu.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hypervisor/arch/x86/cpu.c b/hypervisor/arch/x86/cpu.c index 7d39bc0ac..8ea5aea4f 100644 --- a/hypervisor/arch/x86/cpu.c +++ b/hypervisor/arch/x86/cpu.c @@ -554,12 +554,8 @@ void cpu_secondary_init(void) early_init_lapic(); /* Find the logical ID of this CPU given the LAPIC ID - * temp_logical_id = - * cpu_find_logical_id(get_cur_lapic_id()); + * and Set state for this CPU to initializing */ - cpu_find_logical_id(get_cur_lapic_id()); - - /* Set state for this CPU to initializing */ cpu_set_current_state(cpu_find_logical_id (get_cur_lapic_id()), CPU_STATE_INITIALIZING);