diff options
author | Lv Zheng <lv.zheng@intel.com> | 2012-12-19 00:36:49 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 06:36:17 -0500 |
commit | 75c8044fb38051713000e0d151852f5f9614f77b (patch) | |
tree | 00a49eca82954bf008c47330bffc6342b687706f /drivers/acpi/acpica/exregion.c | |
parent | 9931faca02c604c22335f5a935a501bb2ace6e20 (diff) |
ACPICA: Cleanup updated comments.
This is a cosmetic patch only. Comparison of the resulting binary showed
only line number differences.
This patch does not affect the generation of the Linux binary.
This patch decreases 558 lines of 20121018 divergence.diff.
This patch reduces the source code diff between Linux and ACPICA by
cleaning the comments that already have been updated in ACPICA.
There is no extra indentation done in this patch. Even the empty line
deletions and insertions are also splitted into another cleanup patch so
that this patch can be easily reviewed, and the binary differences can be
held to a lowest level.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/exregion.c')
-rw-r--r-- | drivers/acpi/acpica/exregion.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/exregion.c b/drivers/acpi/acpica/exregion.c index 1db2c0bfde0b..0a01e19c3190 100644 --- a/drivers/acpi/acpica/exregion.c +++ b/drivers/acpi/acpica/exregion.c | |||
@@ -142,9 +142,9 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
142 | } | 142 | } |
143 | 143 | ||
144 | /* | 144 | /* |
145 | * Attempt to map from the requested address to the end of the region. | 145 | * October 2009: Attempt to map from the requested address to the |
146 | * However, we will never map more than one page, nor will we cross | 146 | * end of the region. However, we will never map more than one |
147 | * a page boundary. | 147 | * page, nor will we cross a page boundary. |
148 | */ | 148 | */ |
149 | map_length = (acpi_size) | 149 | map_length = (acpi_size) |
150 | ((mem_info->address + mem_info->length) - address); | 150 | ((mem_info->address + mem_info->length) - address); |
@@ -154,7 +154,11 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
154 | * a page boundary, just map up to the page boundary, do not cross. | 154 | * a page boundary, just map up to the page boundary, do not cross. |
155 | * On some systems, crossing a page boundary while mapping regions | 155 | * On some systems, crossing a page boundary while mapping regions |
156 | * can cause warnings if the pages have different attributes | 156 | * can cause warnings if the pages have different attributes |
157 | * due to resource management | 157 | * due to resource management. |
158 | * | ||
159 | * This has the added benefit of constraining a single mapping to | ||
160 | * one page, which is similar to the original code that used a 4k | ||
161 | * maximum window. | ||
158 | */ | 162 | */ |
159 | page_boundary_map_length = | 163 | page_boundary_map_length = |
160 | ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address; | 164 | ACPI_ROUND_UP(address, ACPI_DEFAULT_PAGE_SIZE) - address; |