mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/loongarch/virt: Rename function prefix name
Replace function prefix name loongarch_xxx with virt_xxx in file virt-acpi-build.c Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
5dd3a714d5
commit
e733b473b8
3 changed files with 5 additions and 5 deletions
|
@ -656,7 +656,7 @@ static const VMStateDescription vmstate_acpi_build = {
|
|||
},
|
||||
};
|
||||
|
||||
static bool loongarch_is_acpi_enabled(LoongArchVirtMachineState *lvms)
|
||||
static bool virt_is_acpi_enabled(LoongArchVirtMachineState *lvms)
|
||||
{
|
||||
if (lvms->acpi == ON_OFF_AUTO_OFF) {
|
||||
return false;
|
||||
|
@ -664,7 +664,7 @@ static bool loongarch_is_acpi_enabled(LoongArchVirtMachineState *lvms)
|
|||
return true;
|
||||
}
|
||||
|
||||
void loongarch_acpi_setup(LoongArchVirtMachineState *lvms)
|
||||
void virt_acpi_setup(LoongArchVirtMachineState *lvms)
|
||||
{
|
||||
AcpiBuildTables tables;
|
||||
AcpiBuildState *build_state;
|
||||
|
@ -674,7 +674,7 @@ void loongarch_acpi_setup(LoongArchVirtMachineState *lvms)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!loongarch_is_acpi_enabled(lvms)) {
|
||||
if (!virt_is_acpi_enabled(lvms)) {
|
||||
ACPI_BUILD_DPRINTF("ACPI disabled. Bailing out.\n");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -686,7 +686,7 @@ static void virt_done(Notifier *notifier, void *data)
|
|||
LoongArchVirtMachineState *lvms = container_of(notifier,
|
||||
LoongArchVirtMachineState, machine_done);
|
||||
virt_build_smbios(lvms);
|
||||
loongarch_acpi_setup(lvms);
|
||||
virt_acpi_setup(lvms);
|
||||
virt_fdt_setup(lvms);
|
||||
}
|
||||
|
||||
|
|
|
@ -64,5 +64,5 @@ struct LoongArchVirtMachineState {
|
|||
|
||||
#define TYPE_LOONGARCH_VIRT_MACHINE MACHINE_TYPE_NAME("virt")
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(LoongArchVirtMachineState, LOONGARCH_VIRT_MACHINE)
|
||||
void loongarch_acpi_setup(LoongArchVirtMachineState *lvms);
|
||||
void virt_acpi_setup(LoongArchVirtMachineState *lvms);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue