Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182146
b: refs/heads/master
c: 2a5d665
h: refs/heads/master
v: v3
  • Loading branch information
Matt Turner authored and Ralf Baechle committed Feb 27, 2010
1 parent 315c043 commit 9253691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bba90760582d2563b28a4738fb785185a59e9e71
refs/heads/master: 2a5d66511a6adc0546a92d33734e3ebf7ab0d10c
6 changes: 3 additions & 3 deletions trunk/arch/mips/cavium-octeon/executive/cvmx-bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min,
* impossible requests up front. (NOP for address_min == 0)
*/
if (alignment)
address_min = __ALIGN_MASK(address_min, (alignment - 1));
address_min = ALIGN(address_min, alignment);

/*
* Reject inconsistent args. We have adjusted these, so this
Expand Down Expand Up @@ -291,7 +291,7 @@ int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min,
* satisfy request.
*/
usable_base =
__ALIGN_MASK(max(address_min, ent_addr), alignment - 1);
ALIGN(max(address_min, ent_addr), alignment);
usable_max = min(address_max, ent_addr + ent_size);
/*
* We should be able to allocate block at address
Expand Down Expand Up @@ -671,7 +671,7 @@ int64_t cvmx_bootmem_phy_named_block_alloc(uint64_t size, uint64_t min_addr,
* coallesced when they are freed. The alloc routine does the
* same rounding up on all allocations.
*/
size = __ALIGN_MASK(size, (CVMX_BOOTMEM_ALIGNMENT_SIZE - 1));
size = ALIGN(size, CVMX_BOOTMEM_ALIGNMENT_SIZE);

addr_allocated = cvmx_bootmem_phy_alloc(size, min_addr, max_addr,
alignment,
Expand Down

0 comments on commit 9253691

Please sign in to comment.