From: Dan Magenheimer Subject: pvclock implementation in pv_ops kernel: why not __native_read_tsc()? Date: Fri, 30 Oct 2009 16:30:39 -0700 (PDT) Message-ID: References: <4AE883B9.4050409@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4AE883B9.4050409@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org Hi Jeremy -- I was looking at rdtsc usages in 2.6.31... you may or may not be surprised to hear that there is exactly one usage location, at least through boot and some basic NFS copying: native_read_tsc(). Digging through the pvclock code, I see that pvclock calls native_read_tsc() rather than use the __native_read_tsc() inline function. Any reason for this? It seems an unnecessary extra function call for a routine that is used thousands of times every second. Dan