* [PATCHv2 1/2] mm/memblock: add memblock_get_current_limit [not found] <1391558551-31395-1-git-send-email-lauraa@codeaurora.org> @ 2014-02-05 0:02 ` Laura Abbott 2014-02-05 22:01 ` Andrew Morton 2014-02-05 23:19 ` Santosh Shilimkar 0 siblings, 2 replies; 3+ messages in thread From: Laura Abbott @ 2014-02-05 0:02 UTC (permalink / raw) To: linux-mm, Andrew Morton Cc: Laura Abbott, linux-kernel, Leif Lindholm, Grygorii Strashko, Catalin Marinas, Rob Herring, Ard Biesheuvel, Will Deacon, Nicolas Pitre, Santosh Shilimkar Appart from setting the limit of memblock, it's also useful to be able to get the limit to avoid recalculating it every time. Add the function to do so. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> --- include/linux/memblock.h | 2 ++ mm/memblock.c | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 1ef6636..8a20a51 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -252,6 +252,8 @@ static inline void memblock_dump_all(void) void memblock_set_current_limit(phys_addr_t limit); +phys_addr_t memblock_get_current_limit(void); + /* * pfn conversion functions * diff --git a/mm/memblock.c b/mm/memblock.c index 87d21a6..3820e29 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -1404,6 +1404,11 @@ void __init_memblock memblock_set_current_limit(phys_addr_t limit) memblock.current_limit = limit; } +phys_addr_t __init_memblock memblock_get_current_limit(void) +{ + return memblock.current_limit; +} + static void __init_memblock memblock_dump(struct memblock_type *type, char *name) { unsigned long long base, size; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCHv2 1/2] mm/memblock: add memblock_get_current_limit 2014-02-05 0:02 ` [PATCHv2 1/2] mm/memblock: add memblock_get_current_limit Laura Abbott @ 2014-02-05 22:01 ` Andrew Morton 2014-02-05 23:19 ` Santosh Shilimkar 1 sibling, 0 replies; 3+ messages in thread From: Andrew Morton @ 2014-02-05 22:01 UTC (permalink / raw) To: Laura Abbott Cc: linux-mm, linux-kernel, Leif Lindholm, Grygorii Strashko, Catalin Marinas, Rob Herring, Ard Biesheuvel, Will Deacon, Nicolas Pitre, Santosh Shilimkar On Tue, 4 Feb 2014 16:02:30 -0800 Laura Abbott <lauraa@codeaurora.org> wrote: > Appart from setting the limit of memblock, it's also useful to be able > to get the limit to avoid recalculating it every time. Add the function > to do so. Looks OK to me. Your "[PATCHv2 2/2] arm: Get rid of meminfo" did not make it into my inbox or into my lkml folder, but I found it at lkml.org so the server did send it. I'm not sure what's up with that. Please include [patch 1/2] within or alongside [patch 2/2] so they both get merged via the same route, which is presumably an arm tree. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCHv2 1/2] mm/memblock: add memblock_get_current_limit 2014-02-05 0:02 ` [PATCHv2 1/2] mm/memblock: add memblock_get_current_limit Laura Abbott 2014-02-05 22:01 ` Andrew Morton @ 2014-02-05 23:19 ` Santosh Shilimkar 1 sibling, 0 replies; 3+ messages in thread From: Santosh Shilimkar @ 2014-02-05 23:19 UTC (permalink / raw) To: Laura Abbott Cc: linux-mm, Andrew Morton, linux-kernel, Leif Lindholm, Grygorii Strashko, Catalin Marinas, Rob Herring, Ard Biesheuvel, Will Deacon, Nicolas Pitre On Tuesday 04 February 2014 07:02 PM, Laura Abbott wrote: > Appart from setting the limit of memblock, it's also useful to be able > to get the limit to avoid recalculating it every time. Add the function > to do so. > > Signed-off-by: Laura Abbott <lauraa@codeaurora.org> > --- Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-05 23:19 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1391558551-31395-1-git-send-email-lauraa@codeaurora.org> 2014-02-05 0:02 ` [PATCHv2 1/2] mm/memblock: add memblock_get_current_limit Laura Abbott 2014-02-05 22:01 ` Andrew Morton 2014-02-05 23:19 ` Santosh Shilimkar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).