]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
xen/multicall: move *idx fields to start of mc_buffer
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sat, 18 Dec 2010 01:33:11 +0000 (17:33 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 18 Jul 2011 22:43:46 +0000 (15:43 -0700)
The CPU would prefer small offsets.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/multicalls.c

index 2474553d1f26bf0b6d5f8ec52505b7eeb5600692..0d82003e76adab8afe2ef3848f0c4384cd99601e 100644 (file)
@@ -36,6 +36,7 @@
 
 
 struct mc_buffer {
+       unsigned mcidx, argidx, cbidx;
        struct multicall_entry entries[MC_BATCH];
 #if MC_DEBUG
        struct multicall_entry debug[MC_BATCH];
@@ -46,7 +47,6 @@ struct mc_buffer {
                void (*fn)(void *);
                void *data;
        } callbacks[MC_BATCH];
-       unsigned mcidx, argidx, cbidx;
 };
 
 static DEFINE_PER_CPU(struct mc_buffer, mc_buffer);