HV: rename CONFIG_MAX_PCPU_NUM to MAX_PCPU_NUM

rename the macro since MAX_PCPU_NUM could be parsed from board file and
it is not a configurable item anymore.

Tracked-On: #4230

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2019-12-11 12:29:21 +08:00
committed by wenlingz
parent 67b416d523
commit ea3476d22d
19 changed files with 28 additions and 28 deletions

View File

@@ -240,7 +240,7 @@ void send_dest_ipi_mask(uint32_t dest_mask, uint32_t vector)
pcpu_id = ffs64(mask);
while (pcpu_id < CONFIG_MAX_PCPU_NUM) {
while (pcpu_id < MAX_PCPU_NUM) {
bitmap32_clear_nolock(pcpu_id, &mask);
if (is_pcpu_active(pcpu_id)) {
icr.value_32.hi_32 = per_cpu(lapic_id, pcpu_id);
@@ -270,7 +270,7 @@ void send_single_ipi(uint16_t pcpu_id, uint32_t vector)
}
/**
* @pre pcpu_id < CONFIG_MAX_PCPU_NUM
* @pre pcpu_id < MAX_PCPU_NUM
*
* @return None
*/