From: Andi Kleen Subject: Re: [PATCH 17/20] SMP: Implement on_cpu() Date: Mon, 9 Jul 2007 09:16:40 +0200 Message-ID: <20070709071640.GB10864@one.firstfloor.org> References: <11838956891287-git-send-email-avi@qumranet.com> <11838956893094-git-send-email-avi@qumranet.com> <4691D9C1.4050309@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: KVM , Andi Kleen , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4691D9C1.4050309-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org > Well, smp_call_function_single() is arch specific whereas on_cpu() is Yes, but the few instances should be relatively easy to fix. > generic code. Perhaps rename smp_call_function_single() to > __smp_call_function_single() and on_cpu() to smp_call_function_single()? The low level function checks for this anyways. Instead of erroring it should just DTRT. > > I dislike the loss of symmetry though. on_each_cpu() was imho always a mistake. It would have been better to just fix smp_call_function() directly -Andi ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/