lkml.org 
[lkml]   [2008]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86: Implement prctl PR_GET_TSC and PR_SET_TSC
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


\
 
 \ /
  Last update: 2008-04-27 00:59    [W:0.438 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site