On Fri, 14 Mar 2008 20:55:20 +0100, "Andi Kleen" <andi@firstfloor.org> said:Hi Andi, I guess you are right. But there is quite a big number of different types of P4. Let's see what the current situation is... defconfigs (of current x86#testing+this patch/current linus) with CONFIG_GENERIC_CPU=n: Athlon: 4764 / 4667 occurences of cmovxx Pentium-IV: 4079 / 3982 occurences of cmovxx Pentium-M: 3939 / 3841 occurences of cmovxx Core-2: 4335 / 4330 occurences of cmovxx So it adds a few percent extra cmovxx's. The last one is fishy... But I'm too hungry and sleepy to go hunt that one down. Generic is maybe not the right term: asm-generic/bitops/fls64.h has: static inline int fls64(__u64 x) { __u32 h = x >> 32; if (h) return fls(h) + 32; return fls(x); } I just wanted to move the 64-bit version to that header, with some ifdefs to select the right one. In fact I just found out that it only had an effect for 64 bit machines. Still, setting it unconditionally feels wrong. It could. But it is a trivial (slow?) implementation. Probably fine for the uses in pci-calgary_64.c and pci-gart_64.c (small ranges?), but I would worry about people using it, thinking it was a near- optimal implementation. Greetings, Alexander -- Alexander van Heukelum heukelum@fastmail.fm -- http://www.fastmail.fm - IMAP accessible web-mail --
| Adrian Bunk | If you want me to quit I will quit |
| Marc Perkel | AMD Quad Core clock problem? |
| Fred Tyler | Slow, persistent memory leak in 2.6.20 |
| Rafał Bilski | Re: cpufreq longhaul locks up |
git: | |
| Pietro Mascagni | GIT vs Other: Need argument |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Theodore Tso | Re: Git/Mercurial interoperability (and what about bzr?) (was: Re: [VOTE] git vers... |
| cte | linking libgit.a in C++ projects |
| qw er | OpenBSD sucks |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Andrei Pirvan | apache 1.3.29 + PHP 5.2.6 on OpenBSD 4.4 |
| STeve Andre' | Re: Perpetually Current |
| Johann Baudy | Packet mmap: TX RING and zero copy |
| Herbert Xu | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| PJ Waskiewicz | [ANNOUNCE] ixgbe: Data Center Bridging (DCB) support for ixgbe |
| Matt Mackall | [PATCH] Stop scaring users with "treason uncloaked!" |
