On Wed, 15 Dec 2010, Len Brown wrote: > Hi Arjan, > I hoped that the test patch below would help acpi_battery_init() > on machines where it runs a lot of AML. I have a lenovo s10-3 > where it was taking 900ms, and this patch seemed to reduce > it to 600ms. However, I measured again and it seems to have > gone _up_ to 1300ms - so perhaps there is some other factor > determining how long that routine is taking? Oh, I should mention that this was vs 2.6.36.stable and measured by enabling "initcall_debug" and seeing how long it took for the routine to return. bootchart.pl shows that acpi_battery_init is being done in an async thread. > -Len > > diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c > index 65b25a3..4658f61 100644 > --- a/drivers/acpi/osl.c > +++ b/drivers/acpi/osl.c > @@ -271,7 +271,7 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size) > /* > * ioremap checks to ensure this is in reserved space > */ > - return ioremap((unsigned long)phys, size); > + return ioremap_cache((unsigned long)phys, size); > else > return __acpi_map_table((unsigned long)phys, size); > } > -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html