From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx195.postini.com [74.125.245.195]) by kanga.kvack.org (Postfix) with SMTP id 74D3C6B0002 for ; Sat, 23 Mar 2013 18:24:25 -0400 (EDT) Received: by mail-oa0-f44.google.com with SMTP id h1so5350491oag.17 for ; Sat, 23 Mar 2013 15:24:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130323152948.GA3036@sgi.com> References: <20130318155619.GA18828@sgi.com> <20130321105516.GC18484@gmail.com> <20130322072532.GC10608@gmail.com> <20130323152948.GA3036@sgi.com> From: KOSAKI Motohiro Date: Sat, 23 Mar 2013 18:24:04 -0400 Message-ID: Subject: Re: [patch] mm: speedup in __early_pfn_to_nid Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Russ Anderson Cc: Ingo Molnar , David Rientjes , "linux-mm@kvack.org" , LKML , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" > --- linux.orig/mm/page_alloc.c 2013-03-19 16:09:03.736450861 -0500 > +++ linux/mm/page_alloc.c 2013-03-22 17:07:43.895405617 -0500 > @@ -4161,10 +4161,23 @@ int __meminit __early_pfn_to_nid(unsigne > { > unsigned long start_pfn, end_pfn; > int i, nid; > + /* > + NOTE: The following SMP-unsafe globals are only used early > + in boot when the kernel is running single-threaded. > + */ > + static unsigned long last_start_pfn, last_end_pfn; > + static int last_nid; Why don't you mark them __meminitdata? They seems freeable. -- 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