summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/multicalls.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-12-18 02:33:11 +0100
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2011-07-19 00:43:46 +0200
commit2a6f6d095509c7dc6e9ff8d9fd9fba0b730ecce3 (patch)
tree2cb9c2b2f1aff157686e13ab2898b38da288afb8 /arch/x86/xen/multicalls.c
parentxen/multicall: special-case singleton hypercalls (diff)
downloadlinux-2a6f6d095509c7dc6e9ff8d9fd9fba0b730ecce3.tar.xz
linux-2a6f6d095509c7dc6e9ff8d9fd9fba0b730ecce3.zip
xen/multicall: move *idx fields to start of mc_buffer
The CPU would prefer small offsets. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/xen/multicalls.c')
-rw-r--r--arch/x86/xen/multicalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/multicalls.c b/arch/x86/xen/multicalls.c
index 2474553d1f26..0d82003e76ad 100644
--- a/arch/x86/xen/multicalls.c
+++ b/arch/x86/xen/multicalls.c
@@ -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);