From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756433AbbJIUlI (ORCPT ); Fri, 9 Oct 2015 16:41:08 -0400 Received: from www.linutronix.de ([62.245.132.108]:39168 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755954AbbJIUlG (ORCPT ); Fri, 9 Oct 2015 16:41:06 -0400 Date: Fri, 9 Oct 2015 22:40:23 +0200 (CEST) From: Thomas Gleixner To: Jiang Liu cc: Daniel J Blueman , Ingo Molnar , Denys Vlasenko , Len Brown , Steffen Persvold , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2] x86/apic: Use smaller array for __apicid_to_node[] mapping In-Reply-To: <5617DA66.1040006@linux.intel.com> Message-ID: References: <20151003074428.GA25143@gmail.com> <1444019550-21045-1-git-send-email-daniel@numascale.com> <5617DA66.1040006@linux.intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Oct 2015, Jiang Liu wrote: > On 2015/10/9 22:15, Thomas Gleixner wrote: > > On Mon, 5 Oct 2015, Daniel J Blueman wrote: > >> +struct apicid_to_node { > >> + int apicid; > >> + s16 node; > >> +}; > > > > Instead of having this array, why don't you use a radix tree and be > > done with it? > Hi Thomas, > It's in early booting stage and memory allocator isn't ready > yet. Why do we need that information so early? Thanks, tglx