Re: [PATCH 6/6] cpuid neatening.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 24, 2006 at 04:58:07PM -0700, H. Peter Anvin wrote:
> Rusty Russell wrote:
> >Roll all the cpuid asm into one __cpuid call.  It's a little neater,
> >and also means only one place to patch for paravirtualization.
> 
> The whole point of those is to avoid the unnecessary write to memory and 
> pick it back up again.  This patch reintroduces that ugliness.

Modern gcc should optimize this when it is inlined. If it didn't
most abstracted C++ code would be quite unhappy.

Also as far as I know there is only a single time critical CPUID
in the code and it ignores all output arguments.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux