Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 14 Feb 2003 21:11:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 14 Feb 2003 21:11:47 -0500 Received: from modemcable092.130-200-24.mtl.mc.videotron.ca ([24.200.130.92]:30224 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Fri, 14 Feb 2003 21:11:46 -0500 Date: Fri, 14 Feb 2003 21:18:09 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Ulrich Weigand cc: linux-kernel@vger.kernel.org, "" Subject: Re: [PATCH][2.5][8/14] smp_call_function_on_cpu - s390 In-Reply-To: <200302142230.XAA13431@faui11.informatik.uni-erlangen.de> Message-ID: References: <200302142230.XAA13431@faui11.informatik.uni-erlangen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 31 On Fri, 14 Feb 2003, Ulrich Weigand wrote: > Zwane Mwaikambo wrote: > > >+ cpu = get_cpu(); > >+ mask &= (1UL << cpu); > >+ num_cpus = hweight32(mask); > > I guess you mean > mask &= ~(1UL << cpu); > or else num_cpus is always either 0 or 1 ... Hmm correct > >+ for (i = 0; i < NR_CPUS; i++) { > >+ if (cpu_online(i) && ((1UL << cpu) && mask)) > > This should be > if (cpu_online(i) && ((1UL << i) & mask)) > or else the message is sent to all online CPUs anyway ... Correct again, thanks i'll fix that. Zwane -- function.linuxpower.ca - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/