From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761050AbYB1QvQ (ORCPT ); Thu, 28 Feb 2008 11:51:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758443AbYB1QvE (ORCPT ); Thu, 28 Feb 2008 11:51:04 -0500 Received: from mx1.redhat.com ([66.187.233.31]:60236 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758347AbYB1QvB (ORCPT ); Thu, 28 Feb 2008 11:51:01 -0500 Date: Thu, 28 Feb 2008 11:50:00 -0500 From: Jason Baron To: Mathieu Desnoyers Cc: akpm@linux-foundation.org, Ingo Molnar , linux-kernel@vger.kernel.org, Rusty Russell Subject: Re: [patch 1/7] Immediate Values - Architecture Independent Code Message-ID: <20080228165000.GA6856@redhat.com> References: <20080202210828.840735763@polymtl.ca> <20080202211204.268876860@polymtl.ca> <20080226225242.GA15926@redhat.com> <20080227190519.GA14335@Krystal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080227190519.GA14335@Krystal> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2008 at 02:05:19PM -0500, Mathieu Desnoyers wrote: > > +struct stop_machine_data { > > + int (*fn)(void *); > > + void *data; > > + struct completion done; > > + int run_all; > > +} smdata; > > + > > Why do we now have to declare this static ? Can we pass it as a pointer > to stopmachine instead ? > Since the other cpus need to access 'fn', i made smdata a global. stop_machine_run() is system-wide, so we only need one of these... thanks, -Jason