From owner-p4-projects@FreeBSD.ORG Wed May 9 19:33:14 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 8B4EF16A40D; Wed, 9 May 2007 19:33:14 +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 3459D16A40B for ; Wed, 9 May 2007 19:33:14 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id E53F713C4AD for ; Wed, 9 May 2007 19:33:13 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so320922wra for ; Wed, 09 May 2007 12:33:13 -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=oUASi9fmqbC6rk9opjo6+JGSazq1oI7VC6gpzyiDDNucXFEeguDBIGDCSiDnssG4QcJ4gXiO+MCEmovnJUMPdwmbm9F1WNw6bwmt3RBHrxyCNB6XZtfbIEF9JbEhULkKJDdptTRIQzKHZS8jFgMt02pWAmSWXfQlK8NSRdjtvLs= 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=AJPS5YyH+a3fg//MhvTrbqmXeAPY0TIhUhBDePifsEHYO3d+GSFeoLCCkWFKriJoTEJBhxmquXYfd57H4B/nA675Gsk1RsGCddH4feHqUDFG7z5aOE9pfRnBbX0vczXrGx3h2Z7a2p0VexbwlqPjWGz6TgXkwySvlpw9luYTpWQ= Received: by 10.78.145.5 with SMTP id s5mr246760hud.1178739192049; Wed, 09 May 2007 12:33:12 -0700 (PDT) Received: by 10.78.120.4 with HTTP; Wed, 9 May 2007 12:33:11 -0700 (PDT) Message-ID: <3bbf2fe10705091233t405121d2qda9a058ecf4124bc@mail.gmail.com> Date: Wed, 9 May 2007 21:33:11 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "John Baldwin" In-Reply-To: <200705091457.39167.jhb@freebsd.org> 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> X-Google-Sender-Auth: cbbd4d5d7d3cf3d4 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:14 -0000 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. If he needs to know msr of a particular CPU he really needs so, but it doesn't seem the case. Attilio -- Peace can only be achieved by understanding - A. Einstein