]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove it
authorBernhard Beschow <shentey@gmail.com>
Sun, 3 Mar 2024 18:53:32 +0000 (19:53 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 12 Mar 2024 21:56:55 +0000 (17:56 -0400)
commit7d12305ec8c3fa8c60b39aae0d952245a62696d4
tree527dcd611a1d8d2d5049bb0bbc47272f42bf41ad
parentc5e2d74448433c3d800dca6160b5c8fbd76c67d8
hw/i386/pc: Inline pc_cmos_init() into pc_cmos_init_late() and remove it

Now that pc_cmos_init() doesn't populate the X86MachineState::rtc attribute any
longer, its duties can be merged into pc_cmos_init_late() which is called within
machine_done notifier. This frees pc_piix and pc_q35 from explicit CMOS
initialization.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20240303185332.1408-5-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h