From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262429AbVFUW6O (ORCPT ); Tue, 21 Jun 2005 18:58:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262427AbVFUW5K (ORCPT ); Tue, 21 Jun 2005 18:57:10 -0400 Received: from fmr24.intel.com ([143.183.121.16]:48860 "EHLO scsfmr004.sc.intel.com") by vger.kernel.org with ESMTP id S262424AbVFUWvr (ORCPT ); Tue, 21 Jun 2005 18:51:47 -0400 Message-Id: <200506212251.j5LMpag28920@unix-os.sc.intel.com> From: "Chen, Kenneth W" To: "Lynch, Rusty" , "Ingo Molnar" , "Andrew Morton" Cc: , Subject: RE: scheduler cache-hot-auto-tune patch breaks ia64 UP build Date: Tue, 21 Jun 2005 15:51:36 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcV2rRuYz2dppFnrQO+/5rl+56XYXQABgx6Q In-Reply-To: <032EB457B9DBC540BFB1B7B519C78B0E076E3C6A@orsmsx404.amr.corp.intel.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Lynch, Rusty wrote on Tuesday, June 21, 2005 3:04 PM > Attempting to build 2.6.12-mm1 on ia64 with CONFIG_SMP disabled will > cause the build to break because max_cache_size is undefined. I haven't > spent the time to understand the cache-hot-auto-tune feature, so I don't > have a patch to fix the problem. It needs a #ifdef around max_cache_size. Patch to fix the build problem. Signed-off-by: Ken Chen --- linux-2.6.12/arch/ia64/kernel/setup.c.orig 2005-06-21 15:46:16.418636538 -0700 +++ linux-2.6.12/arch/ia64/kernel/setup.c 2005-06-21 15:46:34.496761317 -0700 @@ -655,7 +655,9 @@ get_max_cacheline_size (void) cache_size = cci.pcci_cache_size; } out: +#ifdef CONFIG_SMP max_cache_size = max(max_cache_size, cache_size); +#endif if (max > ia64_max_cacheline_size) ia64_max_cacheline_size = max; }