mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: cpu: remove unnecessary cpu_id valid check
Remove unnecessary cpu_id valid check if the cpu_id comes from get_cpu_id(). Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -408,7 +408,10 @@ void stop_cpus();
|
||||
CPU_RFLAGS_RESTORE(cpu_int_value); \
|
||||
}
|
||||
|
||||
/* Macro to get CPU ID */
|
||||
/*
|
||||
* Macro to get CPU ID
|
||||
* @pre: the return CPU ID would never equal or large than phys_cpu_num.
|
||||
*/
|
||||
static inline uint16_t get_cpu_id(void)
|
||||
{
|
||||
uint32_t tsl, tsh, cpu_id;
|
||||
|
Reference in New Issue
Block a user