acpi(4): Fix a bug in acpi_cpu_cstate.c (we have to write, and not to read).
authorSascha Wildner <saw@online.de>
Wed, 9 Feb 2011 16:25:06 +0000 (17:25 +0100)
committerSascha Wildner <saw@online.de>
Wed, 9 Feb 2011 16:25:06 +0000 (17:25 +0100)
Introduced with 10f976749fd9ad2e8642ea80ce533f7416910a65. The commit message
said "Sync ACPI with FreeBSD 7.2", even though FreeBSD 7.2 doesn't seem to
have this code at all, so I'm not sure about what the idea behind that
change was. I'm guessing it is a typo, since newer FreeBSDs call
AcpiWriteBitRegister() here too.

Reported-by: Andrea Magliano <masterblaster@tiscali.it>
sys/dev/acpica5/acpi_cpu_cstate.c

index 99049ba..10f772c 100644 (file)
@@ -1017,7 +1017,7 @@ acpi_cpu_quirks(void)
            if (val) {
                ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                    "acpi_cpu: PIIX4: reset BRLD_EN_BM\n"));
-               AcpiReadBitRegister(ACPI_BITREG_BUS_MASTER_RLD, 0);
+               AcpiWriteBitRegister(ACPI_BITREG_BUS_MASTER_RLD, 0);
            }
            break;
        default: