public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* acpi_battery_init() boot speed
@ 2010-12-15  8:13 Len Brown
  2010-12-15  8:15 ` Len Brown
  2010-12-15 11:00 ` Arjan van de Ven
  0 siblings, 2 replies; 8+ messages in thread
From: Len Brown @ 2010-12-15  8:13 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-acpi

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?

-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);
 }

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-17 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15  8:13 acpi_battery_init() boot speed Len Brown
2010-12-15  8:15 ` Len Brown
2010-12-15 11:00 ` Arjan van de Ven
2010-12-15 20:27   ` Len Brown
2010-12-16  4:58     ` Arjan van de Ven
2010-12-17  4:31       ` Len Brown
2010-12-17  8:46   ` Len Brown
2010-12-17 16:02     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox