From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754848AbbJIPQ6 (ORCPT ); Fri, 9 Oct 2015 11:16:58 -0400 Received: from mga09.intel.com ([134.134.136.24]:54685 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282AbbJIPQ5 (ORCPT ); Fri, 9 Oct 2015 11:16:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,658,1437462000"; d="scan'208";a="788583805" Subject: Re: [PATCH v2] x86/apic: Use smaller array for __apicid_to_node[] mapping To: Thomas Gleixner , Daniel J Blueman References: <20151003074428.GA25143@gmail.com> <1444019550-21045-1-git-send-email-daniel@numascale.com> Cc: Ingo Molnar , Denys Vlasenko , Len Brown , Steffen Persvold , linux-kernel@vger.kernel.org, x86@kernel.org From: Jiang Liu Organization: Intel Message-ID: <5617DA66.1040006@linux.intel.com> Date: Fri, 9 Oct 2015 23:16:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Gerry