Skip to content

Commit

Permalink
xen/multicall: move *idx fields to start of mc_buffer
Browse files Browse the repository at this point in the history
The CPU would prefer small offsets.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge committed Jul 18, 2011
1 parent eac303b commit 2a6f6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/multicalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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);
Expand Down

0 comments on commit 2a6f6d0

Please sign in to comment.