Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756145Ab2F2SgH (ORCPT ); Fri, 29 Jun 2012 14:36:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26333 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753226Ab2F2SgE (ORCPT ); Fri, 29 Jun 2012 14:36:04 -0400 Message-ID: <4FEDF562.1080003@redhat.com> Date: Fri, 29 Jun 2012 14:35:14 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Andrea Arcangeli CC: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Hillf Danton , Dan Smith , Peter Zijlstra , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt Subject: Re: [PATCH 16/40] autonuma: init knuma_migrated queues References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> <1340888180-15355-17-git-send-email-aarcange@redhat.com> In-Reply-To: <1340888180-15355-17-git-send-email-aarcange@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1537 Lines: 47 On 06/28/2012 08:55 AM, Andrea Arcangeli wrote: > Initialize the knuma_migrated queues at boot time. > > Signed-off-by: Andrea Arcangeli > --- > mm/page_alloc.c | 11 +++++++++++ > 1 files changed, 11 insertions(+), 0 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index a9710a4..48eabe9 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -59,6 +59,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -4348,8 +4349,18 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, > int nid = pgdat->node_id; > unsigned long zone_start_pfn = pgdat->node_start_pfn; > int ret; > +#ifdef CONFIG_AUTONUMA > + int node_iter; > +#endif > > pgdat_resize_init(pgdat); > +#ifdef CONFIG_AUTONUMA > + spin_lock_init(&pgdat->autonuma_lock); > + init_waitqueue_head(&pgdat->autonuma_knuma_migrated_wait); > + pgdat->autonuma_nr_migrate_pages = 0; > + for_each_node(node_iter) > + INIT_LIST_HEAD(&pgdat->autonuma_migrate_head[node_iter]); > +#endif Should this be a __paginginit function inside one of the autonuma files, so we can avoid the ifdefs here? -- All rights reversed -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/