mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
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:
@@ -111,9 +111,9 @@ int hv_main(uint16_t cpu_id)
|
||||
pr_info("%s, Starting common entry point for CPU %d",
|
||||
__func__, cpu_id);
|
||||
|
||||
if (cpu_id >= phy_cpu_num) {
|
||||
if (cpu_id >= phys_cpu_num) {
|
||||
pr_err("%s, cpu_id %d out of range %d\n",
|
||||
__func__, cpu_id, phy_cpu_num);
|
||||
__func__, cpu_id, phys_cpu_num);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ void get_vmexit_profile(char *str, int str_max)
|
||||
size -= len;
|
||||
str += len;
|
||||
|
||||
for (cpu = 0; cpu < phy_cpu_num; cpu++) {
|
||||
for (cpu = 0; cpu < phys_cpu_num; cpu++) {
|
||||
len = snprintf(str, size, "\t CPU%d\t US", cpu);
|
||||
size -= len;
|
||||
str += len;
|
||||
@@ -164,7 +164,7 @@ void get_vmexit_profile(char *str, int str_max)
|
||||
len = snprintf(str, size, "\r\n0x%x", i);
|
||||
size -= len;
|
||||
str += len;
|
||||
for (cpu = 0; cpu < phy_cpu_num; cpu++) {
|
||||
for (cpu = 0; cpu < phys_cpu_num; cpu++) {
|
||||
len = snprintf(str, size, "\t%10lld\t%10lld",
|
||||
per_cpu(vmexit_cnt, cpu)[i],
|
||||
TICKS_TO_US(per_cpu(vmexit_time, cpu)[i]));
|
||||
|
@@ -13,7 +13,7 @@ void init_scheduler(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < phy_cpu_num; i++) {
|
||||
for (i = 0; i < phys_cpu_num; i++) {
|
||||
spinlock_init(&per_cpu(sched_ctx, i).runqueue_lock);
|
||||
spinlock_init(&per_cpu(sched_ctx, i).scheduler_lock);
|
||||
INIT_LIST_HEAD(&per_cpu(sched_ctx, i).runqueue);
|
||||
@@ -36,7 +36,7 @@ int allocate_pcpu(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < phy_cpu_num; i++) {
|
||||
for (i = 0; i < phys_cpu_num; i++) {
|
||||
if (bitmap_test_and_set(i, &pcpu_used_bitmap) == 0)
|
||||
return i;
|
||||
}
|
||||
|
Reference in New Issue
Block a user