From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759006AbYDZWz4 (ORCPT ); Sat, 26 Apr 2008 18:55:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756633AbYDZWzq (ORCPT ); Sat, 26 Apr 2008 18:55:46 -0400 Received: from terminus.zytor.com ([198.137.202.10]:54715 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755434AbYDZWzp (ORCPT ); Sat, 26 Apr 2008 18:55:45 -0400 Message-ID: <4813B1EF.5090806@zytor.com> Date: Sat, 26 Apr 2008 15:51:27 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dean gaudet CC: Erik Bosman , Michael Kerrisk , Andrew Morton , Thomas Gleixner , Ingo Molnar , Andrea Arcangeli , Linus Torvalds , linux-kernel@vger.kernel.org, Arjan van de Ven Subject: Re: [PATCH 2/3] x86: Implement prctl PR_GET_TSC and PR_SET_TSC References: <517f3f820804140357k62b3bff4p555ba6a5b9438c35@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dean gaudet wrote: > > i might be too late... but shouldn't these #defines be PR_SET_RDTSC and > PR_GET_RDTSC or something like that? > > to me calling them PR_SET_TSC/PR_GET_TSC just seem like alternative ways > to change/get the TSC (and could even reduce to portable TSC > implementations... since such registers do exist on other architectures). > I would argue no, the flag is "is the TSC available". RDTSC is an x86-specific name and would map poorly onto other architectures. -hpa