Rename phy_cpu_num as phys_cpu_num

phys_cpu_num is more popular than phy_cpu_num, update them
through command.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Xiangyang Wu
2018-06-22 13:07:27 +08:00
committed by lijinxia
parent 3892bd0455
commit c585172492
14 changed files with 34 additions and 34 deletions

View File

@@ -31,7 +31,7 @@
#define DEFAULT_DEST_MODE IOAPIC_RTE_DESTLOG
#define DEFAULT_DELIVERY_MODE IOAPIC_RTE_DELLOPRI
#define ALL_CPUS_MASK ((1U << phy_cpu_num) - 1U)
#define ALL_CPUS_MASK ((1U << phys_cpu_num) - 1U)
struct irq_desc;

View File

@@ -41,7 +41,7 @@ struct per_cpu_region {
} __aligned(CPU_PAGE_SIZE); //per_cpu_region size aligned with CPU_PAGE_SIZE
extern struct per_cpu_region *per_cpu_data_base_ptr;
extern uint16_t phy_cpu_num;
extern uint16_t phys_cpu_num;
extern uint64_t pcpu_active_bitmap;
/*
* get percpu data for pcpu_id.

View File

@@ -75,7 +75,7 @@ struct trace_entry {
static inline bool
trace_check(uint16_t cpu_id, __unused int evid)
{
if (cpu_id >= phy_cpu_num)
if (cpu_id >= phys_cpu_num)
return false;
if (per_cpu(sbuf, cpu_id)[ACRN_TRACE] == NULL)