Re: [Xen-devel] [PATCH] xen: cache current vcpu

Keir Fraser
Mon, 29 Oct 2007 17:23:09 -0000

Gcc is quite capable of eliminating common subexpressions involving
current(), and I don''t think this patch aids code readability
(especially
the set_debugreg() change -- p==current means more to me than p==v).

 -- Keir

On 29/10/07 15:43, "Christoph Egger" <Christoph.Egger@amd.com>
wrote:

>
> Hi!
>
> Attached patch caches current vcpu.
>
> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
>