mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 19:00:16 +00:00
HV:change the cpu state to enum type
enum cpu state is better than cpu state macro. V1->V2: move enum cpu_state under #ifndef ASSEMBLER MACRO to avoid assembler compiler scan. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -293,7 +293,7 @@ static int init_phy_cpu_storage(void)
|
||||
return bsp_cpu_id;
|
||||
}
|
||||
|
||||
static void cpu_set_current_state(uint32_t logical_id, int state)
|
||||
static void cpu_set_current_state(uint32_t logical_id, enum cpu_state state)
|
||||
{
|
||||
spinlock_obtain(&up_count_spinlock);
|
||||
|
||||
|
Reference in New Issue
Block a user