From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267484AbUHEEnD (ORCPT ); Thu, 5 Aug 2004 00:43:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267486AbUHEEnD (ORCPT ); Thu, 5 Aug 2004 00:43:03 -0400 Received: from holomorphy.com ([207.189.100.168]:60864 "EHLO holomorphy.com") by vger.kernel.org with ESMTP id S267484AbUHEEle (ORCPT ); Thu, 5 Aug 2004 00:41:34 -0400 Date: Wed, 4 Aug 2004 21:41:30 -0700 From: William Lee Irwin III To: Andrew Morton , linux-kernel@vger.kernel.org Subject: [sparc32] [3/13] sun4d cpu_present_map is a cpumask_t Message-ID: <20040805044130.GU2334@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Andrew Morton , linux-kernel@vger.kernel.org References: <20040802015527.49088944.akpm@osdl.org> <20040805043817.GS2334@holomorphy.com> <20040805043957.GT2334@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040805043957.GT2334@holomorphy.com> User-Agent: Mutt/1.5.6+20040523i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 04, 2004 at 09:39:57PM -0700, William Lee Irwin III wrote: > An analysis of the code determined that AP initialization called > init_idle() no less than three times, 2 out of the three with incorrect > numbers of arguments. This patch removes the superfluous calls. cpu_present_map is a cpumask_t. Sweep arch/sparc/kernel/sun4d_smp.c so that it is treated as such. Index: mm2-2.6.8-rc2/arch/sparc/kernel/sun4d_smp.c =================================================================== --- mm2-2.6.8-rc2.orig/arch/sparc/kernel/sun4d_smp.c +++ mm2-2.6.8-rc2/arch/sparc/kernel/sun4d_smp.c @@ -43,7 +43,6 @@ extern void calibrate_delay(void); extern volatile int smp_processors_ready; -extern unsigned long cpu_present_map; extern int smp_num_cpus; static int smp_highest_cpu; extern int smp_threads_ready; @@ -172,12 +171,12 @@ current_set[0] = NULL; local_irq_enable(); - cpu_present_map = 0; + cpus_clear(cpu_present_map); /* XXX This whole thing has to go. See sparc64. */ for (i = 0; !cpu_find_by_instance(i, NULL, &mid); i++) - cpu_present_map |= (1<