diff options
author | jkim <jkim@FreeBSD.org> | 2013-02-15 22:43:08 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-02-15 22:43:08 +0000 |
commit | 92f5e4e678b344b1b3374a625c9362e56c1b6a62 (patch) | |
tree | 2fbabd4e1f745a8d7f58c18e6f88e05b0dd16dfc /sys/i386/acpica | |
parent | d2c3957e3c25b7446a753e6981ee8e3af870e866 (diff) | |
download | FreeBSD-src-92f5e4e678b344b1b3374a625c9362e56c1b6a62.zip FreeBSD-src-92f5e4e678b344b1b3374a625c9362e56c1b6a62.tar.gz |
Consistently use round_page(x) rather than roundup(x, PAGE_SIZE). There is
no functional change.
Diffstat (limited to 'sys/i386/acpica')
-rw-r--r-- | sys/i386/acpica/acpi_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/acpica/acpi_machdep.c b/sys/i386/acpica/acpi_machdep.c index 0872127..a244e73 100644 --- a/sys/i386/acpica/acpi_machdep.c +++ b/sys/i386/acpica/acpi_machdep.c @@ -139,7 +139,7 @@ table_map(vm_paddr_t pa, int offset, vm_offset_t length) void *data; off = pa & PAGE_MASK; - length = roundup(length + off, PAGE_SIZE); + length = round_page(length + off); pa = pa & PG_FRAME; va = (vm_offset_t)pmap_kenter_temporary(pa, offset) + (offset * PAGE_SIZE); @@ -163,7 +163,7 @@ table_unmap(void *data, vm_offset_t length) va = (vm_offset_t)data; off = va & PAGE_MASK; - length = roundup(length + off, PAGE_SIZE); + length = round_page(length + off); va &= ~PAGE_MASK; while (length > 0) { pmap_kremove(va); |