]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
hd-geometry: Compute BIOS CHS translation in one place
authorMarkus Armbruster <armbru@redhat.com>
Tue, 10 Jul 2012 09:12:53 +0000 (11:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:32 +0000 (16:48 +0200)
commit2adc99b277ab05877ef847bddde45346378f561a
treeda0313df8aa57f7ec78584464783689f7a6dae71
parent4e4e6e319b5508289da0f2966f63c841c832b847
hd-geometry: Compute BIOS CHS translation in one place

Currently, it is split between hd_geometry_guess() and
pc_cmos_init_late().  Confusing.  info qtree shows the result of the
former.  Also confusing.

Fold the part done in pc_cmos_init_late() into hd_geometry_guess().

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block-common.h
hw/hd-geometry.c
hw/ide/core.c
hw/ide/qdev.c
hw/pc.c