From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.sgi.com [192.48.179.29]) by ozlabs.org (Postfix) with ESMTP id 4CE87B70FC for ; Sat, 2 Oct 2010 05:20:27 +1000 (EST) Date: Fri, 1 Oct 2010 14:20:25 -0500 From: Robin Holt To: Nathan Fontenot Subject: Re: [PATCH 4/9] v3 Allow memory blocks to span multiple memory sections Message-ID: <20101001192025.GQ14064@sgi.com> References: <4CA62700.7010809@austin.ibm.com> <4CA62917.80008@austin.ibm.com> <4CA62FE2.2000003@austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4CA62FE2.2000003@austin.ibm.com> Cc: Greg KH , steiner@sgi.com, linux-kernel@vger.kernel.org, Dave Hansen , linux-mm@kvack.org, Robin Holt , linuxppc-dev@lists.ozlabs.org, KAMEZAWA Hiroyuki List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Oct 01, 2010 at 02:00:50PM -0500, Nathan Fontenot wrote: > Update the memory sysfs code such that each sysfs memory directory is now > considered a memory block that can span multiple memory sections per > memory block. The default size of each memory block is SECTION_SIZE_BITS > to maintain the current behavior of having a single memory section per > memory block (i.e. one sysfs directory per memory section). > > For architectures that want to have memory blocks span multiple > memory sections they need only define their own memory_block_size_bytes() > routine. > > Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024Ab0JATU2 (ORCPT ); Fri, 1 Oct 2010 15:20:28 -0400 Received: from relay1.sgi.com ([192.48.179.29]:35458 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639Ab0JATU1 (ORCPT ); Fri, 1 Oct 2010 15:20:27 -0400 Date: Fri, 1 Oct 2010 14:20:25 -0500 From: Robin Holt To: Nathan Fontenot Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, Greg KH , Dave Hansen , KAMEZAWA Hiroyuki , Robin Holt , steiner@sgi.com Subject: Re: [PATCH 4/9] v3 Allow memory blocks to span multiple memory sections Message-ID: <20101001192025.GQ14064@sgi.com> References: <4CA62700.7010809@austin.ibm.com> <4CA62917.80008@austin.ibm.com> <4CA62FE2.2000003@austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CA62FE2.2000003@austin.ibm.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 01, 2010 at 02:00:50PM -0500, Nathan Fontenot wrote: > Update the memory sysfs code such that each sysfs memory directory is now > considered a memory block that can span multiple memory sections per > memory block. The default size of each memory block is SECTION_SIZE_BITS > to maintain the current behavior of having a single memory section per > memory block (i.e. one sysfs directory per memory section). > > For architectures that want to have memory blocks span multiple > memory sections they need only define their own memory_block_size_bytes() > routine. > > Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id 7EC456B0047 for ; Fri, 1 Oct 2010 15:20:27 -0400 (EDT) Date: Fri, 1 Oct 2010 14:20:25 -0500 From: Robin Holt Subject: Re: [PATCH 4/9] v3 Allow memory blocks to span multiple memory sections Message-ID: <20101001192025.GQ14064@sgi.com> References: <4CA62700.7010809@austin.ibm.com> <4CA62917.80008@austin.ibm.com> <4CA62FE2.2000003@austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CA62FE2.2000003@austin.ibm.com> Sender: owner-linux-mm@kvack.org To: Nathan Fontenot Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, Greg KH , Dave Hansen , KAMEZAWA Hiroyuki , Robin Holt , steiner@sgi.com List-ID: On Fri, Oct 01, 2010 at 02:00:50PM -0500, Nathan Fontenot wrote: > Update the memory sysfs code such that each sysfs memory directory is now > considered a memory block that can span multiple memory sections per > memory block. The default size of each memory block is SECTION_SIZE_BITS > to maintain the current behavior of having a single memory section per > memory block (i.e. one sysfs directory per memory section). > > For architectures that want to have memory blocks span multiple > memory sections they need only define their own memory_block_size_bytes() > routine. > > Signed-off-by: Nathan Fontenot Reviewed-by: Robin Holt -- 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: email@kvack.org