mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
HV: remove redundant code in cpu_secondary_init
cpu_find_logical_id() is called redundantly, remove one. Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
a0b8da77fd
commit
5754d367ce
@ -554,12 +554,8 @@ void cpu_secondary_init(void)
|
|||||||
early_init_lapic();
|
early_init_lapic();
|
||||||
|
|
||||||
/* Find the logical ID of this CPU given the LAPIC ID
|
/* Find the logical ID of this CPU given the LAPIC ID
|
||||||
* temp_logical_id =
|
* and Set state for this CPU to initializing
|
||||||
* cpu_find_logical_id(get_cur_lapic_id());
|
|
||||||
*/
|
*/
|
||||||
cpu_find_logical_id(get_cur_lapic_id());
|
|
||||||
|
|
||||||
/* Set state for this CPU to initializing */
|
|
||||||
cpu_set_current_state(cpu_find_logical_id
|
cpu_set_current_state(cpu_find_logical_id
|
||||||
(get_cur_lapic_id()),
|
(get_cur_lapic_id()),
|
||||||
CPU_STATE_INITIALIZING);
|
CPU_STATE_INITIALIZING);
|
||||||
|
Loading…
Reference in New Issue
Block a user