On Wed, 15 Sep 2004 14:51:55 +0100, Michael Hudson <mwh at python.net> wrote: > Jeremy Hylton <jhylton at gmail.com> writes: > > > I'm feeling pretty out of it :-). I'm very happy to see that the > > Pentium tsc patch made it into the core; I had missed it. I'm amused > > that the Pentium tsc patch works for PPC, too. > > I did consider changing all the names but couldn't be bothered. There's nothing wrong with amusing names for obscure stuff like this :-). > OTOH, I think one could replace the include by > > #define rdtscll(val) \ > __asm__ __volatile__("rdtsc" : "=A" (val)) > > if my limited googling is anything to go by. It also seems asm/msr.h > is a "kernel internal header with absolutely no stable API > properties...." (Redhat bugzilla). > > So, now I've written this email <wink>, I think we should take out the > include and put in the #define. I'll give it a try tonight. I double-checked and my somewhat tweaked RH Linux distro doesn't have an asm/msr.h. I'd rather not try to find out if there is an rdtscll() defined somewhere else. jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4