]> git.hungrycats.org Git - linux/commitdiff
Mark the ACPI CPU throttle and timer IO regions busy.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 9 May 2004 11:43:07 +0000 (04:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 9 May 2004 11:43:07 +0000 (04:43 -0700)
This should help some laptops where the generic PCI
code might otherwise believe that this range is unused.
The ACPI IO range is usually not visible as a standard
BAR.

drivers/acpi/processor.c

index d0c50022573c1a7c25411143144ef227c39ce781..99c02080f3a5080a2a33888fa25aef950fbb811f 100644 (file)
@@ -2225,6 +2225,16 @@ acpi_processor_get_info (
                        object.processor.pblk_address + 4;
                pr->power.states[ACPI_STATE_C3].address =
                        object.processor.pblk_address + 5;
+
+               /*
+                * We don't care about error returns - we just try to mark
+                * these reserved so that nobody else is confused into thinking
+                * that this region might be unused..
+                *
+                * (In particular, allocating the IO range for Cardbus)
+                */
+               request_region(pr->throttling.address, 6, "ACPI CPU throttle");
+               request_region(acpi_fadt.xpm_tmr_blk.address, 4, "ACPI timer");
        }
 
        acpi_processor_get_power_info(pr);