From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760990AbYGRUd6 (ORCPT ); Fri, 18 Jul 2008 16:33:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758000AbYGRUdn (ORCPT ); Fri, 18 Jul 2008 16:33:43 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:39190 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757858AbYGRUdm (ORCPT ); Fri, 18 Jul 2008 16:33:42 -0400 Date: Fri, 18 Jul 2008 22:33:21 +0200 From: Ingo Molnar To: Mike Travis Cc: Rusty Russell , Andrew Morton , "H. Peter Anvin" , Christoph Lameter , Jack Steiner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/8] cpumask: Optimize cpumask_of_cpu in lib/smp_processor_id.c Message-ID: <20080718203321.GA21280@elte.hu> References: <20080715211429.454823000@polaris-admin.engr.sgi.com> <20080715211430.306421000@polaris-admin.engr.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080715211430.306421000@polaris-admin.engr.sgi.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0027] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hmmm: > --- linux-2.6.tip.orig/lib/smp_processor_id.c > +++ linux-2.6.tip/lib/smp_processor_id.c > unsigned long preempt_count = preempt_count(); > int this_cpu = raw_smp_processor_id(); > - cpumask_t this_mask; > + cpumask_of_cpu_ptr_declare(this_mask); > - this_mask = cpumask_of_cpu(this_cpu); > + cpumask_of_cpu_ptr_next(this_mask, cpu); 'cpu' is not declared ... Ingo