From: Myron Stowe Date: Thu, 21 Oct 2010 20:24:14 +0000 (-0600) Subject: ACPI: Page based coalescing of I/O remappings optimization X-Git-Tag: v2.6.37-rc1~100^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a3cba5e72a5232842ff7c1ca691ec3450af64b9;p=pandora-kernel.git ACPI: Page based coalescing of I/O remappings optimization This patch optimizes ACPI MMIO remappings by keeping track of the remappings on a PAGE_SIZE granularity. When an ioremap() occurs, the underlying infrastructure works on a 'page' based granularity. As such, an ioremap() request for 1 byte for example, will end up mapping in an entire (PAGE_SIZE) page. Huang Ying took advantage of this in commit 15651291a2f8c11e7e6a42d8bfde7a213ff13262 by checking if subsequent ioremap() requests reside within any of the list's existing remappings still in place, and if so, incrementing a reference count on the existing mapping as opposed to performing another ioremap(). Signed-off-by: Myron Stowe Signed-off-by: Len Brown --- Reading git-diff-tree failed