mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
hv: Add MAX_PCPU_NUM in Kconfig
--Removed MAX_PCPU_NUM in cpu.h --Changed the default value from 128 to 8 for MAX_PCPU_NUM Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
Xie, Nanlin
parent
b686b562f4
commit
298044d95b
@@ -227,7 +227,7 @@ static void *get_acpi_tbl(const char *sig)
|
||||
* of Type 0
|
||||
*/
|
||||
static uint16_t
|
||||
local_parse_madt(void *madt, uint32_t lapic_id_array[MAX_PCPU_NUM])
|
||||
local_parse_madt(void *madt, uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM])
|
||||
{
|
||||
uint16_t pcpu_id = 0U;
|
||||
struct acpi_madt_local_apic *processor;
|
||||
@@ -255,7 +255,7 @@ local_parse_madt(void *madt, uint32_t lapic_id_array[MAX_PCPU_NUM])
|
||||
* set the pcpu_num as 0U to indicate the
|
||||
* potential overflow
|
||||
*/
|
||||
if (pcpu_id >= MAX_PCPU_NUM) {
|
||||
if (pcpu_id >= CONFIG_MAX_PCPU_NUM) {
|
||||
pcpu_id = 0U;
|
||||
break;
|
||||
}
|
||||
@@ -270,7 +270,7 @@ local_parse_madt(void *madt, uint32_t lapic_id_array[MAX_PCPU_NUM])
|
||||
}
|
||||
|
||||
/* The lapic_id info gotten from madt will be returned in lapic_id_array */
|
||||
uint16_t parse_madt(uint32_t lapic_id_array[MAX_PCPU_NUM])
|
||||
uint16_t parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM])
|
||||
{
|
||||
void *madt;
|
||||
|
||||
|
@@ -28,7 +28,7 @@ struct acpi_table_header {
|
||||
uint32_t asl_compiler_revision;
|
||||
};
|
||||
|
||||
uint16_t parse_madt(uint32_t lapic_id_array[MAX_PCPU_NUM]);
|
||||
uint16_t parse_madt(uint32_t lapic_id_array[CONFIG_MAX_PCPU_NUM]);
|
||||
|
||||
void *get_dmar_table(void);
|
||||
#endif /* !ACPI_H */
|
||||
|
Reference in New Issue
Block a user