/* acpi_idle_bm_check - checks if bus master activity was detected  */
static int acpi_idle_bm_check(void)
/* acpi_idle_bm_check - checks if bus master activity was detected  */
static int acpi_idle_bm_check(void)
{
	u32 bm_status = 0;
	acpi_read_bit_register(ACPI_BITREG_BUS_MASTER_STATUS, &bm_status);
	if (bm_status)
		acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_STATUS, 1);
	else if (errata.piix4.bmisx) {
		if ((inb_p(errata.piix4.bmisx + 0x02) & 0x01)
		    || (inb_p(errata.piix4.bmisx + 0x0A) & 0x01))
			bm_status = 1;
	}
	return bm_status;
}