From owner-p4-projects@FreeBSD.ORG Wed May 9 19:33:36 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E4A2316A40A; Wed, 9 May 2007 19:33:35 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B458916A400 for ; Wed, 9 May 2007 19:33:35 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE7813C480 for ; Wed, 9 May 2007 19:33:35 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by ik-out-1112.google.com with SMTP id c29so194777ika for ; Wed, 09 May 2007 12:33:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=N9cyVb65vwr9pN5Q6W4arK0ixo15hGdvuJ18bsb7XmLloFLPldHZ4U1xht9hD40RBDQqL+SEOv/pkNhsfdDRBXbhEYkDkNQ2RofRMUYRU/PNjF7l+LoR/NCWG7HOmNDjoBgV8qVqHQ3MJ1UKb7Wp+xzmJqMi+SxGIgnkEOcLa1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lycYT7H20zHE/j4ncGPoCdT8JEKtiH0vCpS9wYDMgaMn/FftmELxNwmYxFIfcq+vO2zEyQp/dh5IgGtktKI63FMkyGydiTw1m8GaGF3x1eMirB2iUDORqpbWXy3OFq4obPuVxLS9AyyB/qpyBfFYccxe0RWva4I5MnLzZ+2l5Bk= Received: by 10.78.183.15 with SMTP id g15mr215995huf.1178739214110; Wed, 09 May 2007 12:33:34 -0700 (PDT) Received: by 10.78.120.4 with HTTP; Wed, 9 May 2007 12:33:34 -0700 (PDT) Message-ID: <3bbf2fe10705091233l2358359dv804897dd85cb6a42@mail.gmail.com> Date: Wed, 9 May 2007 21:33:34 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "John Baldwin" In-Reply-To: <3bbf2fe10705091233t405121d2qda9a058ecf4124bc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200705062110.l46LAZqE011583@repoman.freebsd.org> <200705091457.39167.jhb@freebsd.org> <3bbf2fe10705091233t405121d2qda9a058ecf4124bc@mail.gmail.com> X-Google-Sender-Auth: a9dda339a8c9c66e Cc: Perforce Change Reviews , Rui Paulo Subject: Re: PERFORCE change 119371 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2007 19:33:36 -0000 2007/5/9, Attilio Rao : > 2007/5/9, John Baldwin : > > On Sunday 06 May 2007 05:10:35 pm Rui Paulo wrote: > > > http://perforce.freebsd.org/chv.cgi?CH=119371 > > > > > > Change 119371 by rpaulo@rpaulo_epsilon on 2007/05/06 21:10:15 > > > > > > We don't need any scheduler support because: > > > 1) msrtemp is a child of cpu - this implies that every > > > rdmsr/cpuid instruction will be executed on that CPU. > > > > No, that isn't true. You do need to use sched_bind() for that so you are > > really on the desired CPU when you read the MSR. > > I think he just needs msr of the cpu where curthread is executed, so > any scheduler lock should be needed. s/should/shouldn't. Attilio -- Peace can only be achieved by understanding - A. Einstein