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:
Mingqiang Chi
2018-12-26 14:04:20 +08:00
committed by wenlingz
parent 682824de6d
commit 5c6fe01c87
4 changed files with 13 additions and 7 deletions

View File

@@ -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 */

View File

@@ -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.
*/