mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
hv:Change pcpu_active_bitmap to static
-- Change pcpu_active_bitmap to static, only used in cpu.c -- add get_pcpu_active_bitmap() Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -464,6 +464,7 @@ static inline void clac(void)
|
||||
|
||||
uint16_t get_pcpu_nums(void);
|
||||
bool is_pcpu_active(uint16_t pcpu_id);
|
||||
uint64_t get_active_pcpu_bitmap(void);
|
||||
#else /* ASSEMBLER defined */
|
||||
|
||||
#endif /* ASSEMBLER defined */
|
||||
|
@@ -56,7 +56,6 @@ struct per_cpu_region {
|
||||
} __aligned(PAGE_SIZE); /* per_cpu_region size aligned with PAGE_SIZE */
|
||||
|
||||
extern struct per_cpu_region per_cpu_data[];
|
||||
extern uint64_t pcpu_active_bitmap;
|
||||
/*
|
||||
* get percpu data for pcpu_id.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user