Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277165
b: refs/heads/master
c: 4ff7b82
h: refs/heads/master
i:
  277163: 714e736
v: v3
  • Loading branch information
Tejun Heo committed Dec 8, 2011
1 parent 8228bac commit cff15d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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: 9c8c27e2b89b020fd33dd3f2b18405d3f027e6ac
refs/heads/master: 4ff7b82f1e5fc65a7c9512b231b4ea533f28541a
8 changes: 7 additions & 1 deletion trunk/include/linux/memblock.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ int memblock_is_region_memory(phys_addr_t base, phys_addr_t size);
int memblock_is_reserved(phys_addr_t addr);
int memblock_is_region_reserved(phys_addr_t base, phys_addr_t size);

void memblock_dump_all(void);
extern void __memblock_dump_all(void);

static inline void memblock_dump_all(void)
{
if (memblock_debug)
__memblock_dump_all();
}

/**
* memblock_set_current_limit - Set the current allocation limit to allow
Expand Down
5 changes: 1 addition & 4 deletions trunk/mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,8 @@ static void __init_memblock memblock_dump(struct memblock_type *type, char *name
}
}

void __init_memblock memblock_dump_all(void)
void __init_memblock __memblock_dump_all(void)
{
if (!memblock_debug)
return;

pr_info("MEMBLOCK configuration:\n");
pr_info(" memory size = 0x%llx\n", (unsigned long long)memblock.memory_size);

Expand Down

0 comments on commit cff15d1

Please sign in to comment.