Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212718
b: refs/heads/master
c: 5303b68
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Benjamin Herrenschmidt committed Aug 5, 2010
1 parent aae58ce commit 929b440
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10d0643988e976360eb3497dcafb55b393b8e480
refs/heads/master: 5303b68f57c227c27193a14e57dd12be27cd670f
2 changes: 2 additions & 0 deletions trunk/include/linux/memblock.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ extern int memblock_can_resize;
#define memblock_dbg(fmt, ...) \
if (memblock_debug) printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)

u64 memblock_find_in_range(u64 start, u64 end, u64 size, u64 align);

extern void __init memblock_init(void);
extern void __init memblock_analyze(void);
extern long memblock_add(phys_addr_t base, phys_addr_t size);
Expand Down
8 changes: 8 additions & 0 deletions trunk/mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ static phys_addr_t __init memblock_find_base(phys_addr_t size, phys_addr_t align
return MEMBLOCK_ERROR;
}

/*
* Find a free area with specified alignment in a specific range.
*/
u64 __init_memblock memblock_find_in_range(u64 start, u64 end, u64 size, u64 align)
{
return memblock_find_base(size, align, start, end);
}

static void __init_memblock memblock_remove_region(struct memblock_type *type, unsigned long r)
{
unsigned long i;
Expand Down

0 comments on commit 929b440

Please sign in to comment.