lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 18 Feb 2014 17:54:30 -0500 (EST)
From:	Nicolas Pitre <nicolas.pitre@...aro.org>
To:	Laura Abbott <lauraa@...eaurora.org>
cc:	linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org,
	Leif Lindholm <leif.lindholm@...aro.org>,
	Grygorii Strashko <grygorii.strashko@...com>,
	Catalin Marinas <catalin.marinas@....com>,
	Rob Herring <robherring2@...il.com>,
	Ard Biesheuvel <ard.biesheuvel@...aro.org>,
	Will Deacon <will.deacon@....com>,
	Santosh Shilimkar <santosh.shilimkar@...com>
Subject: Re: [PATCHv4 1/2] mm/memblock: add memblock_get_current_limit

On Tue, 18 Feb 2014, Laura Abbott wrote:

> Apart 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.
> 
> Acked-by: Catalin Marinas <catalin.marinas@....com>
> Acked-by: Santosh Shilimkar <santosh.shilimkar@...com>
> Acked-by: Andrew Morton <akpm@...ux-foundation.org>
> Signed-off-by: Laura Abbott <lauraa@...eaurora.org>

Acked-by: Nicolas Pitre <nico@...aro.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 39a31e7..7fe5354 100644
> --- a/mm/memblock.c
> +++ b/mm/memblock.c
> @@ -1407,6 +1407,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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ