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>
This commit is contained in:
parent
eac303bf2e
commit
2a6f6d0955
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
|
|
||||||
struct mc_buffer {
|
struct mc_buffer {
|
||||||
|
unsigned mcidx, argidx, cbidx;
|
||||||
struct multicall_entry entries[MC_BATCH];
|
struct multicall_entry entries[MC_BATCH];
|
||||||
#if MC_DEBUG
|
#if MC_DEBUG
|
||||||
struct multicall_entry debug[MC_BATCH];
|
struct multicall_entry debug[MC_BATCH];
|
||||||
@ -46,7 +47,6 @@ struct mc_buffer {
|
|||||||
void (*fn)(void *);
|
void (*fn)(void *);
|
||||||
void *data;
|
void *data;
|
||||||
} callbacks[MC_BATCH];
|
} callbacks[MC_BATCH];
|
||||||
unsigned mcidx, argidx, cbidx;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static DEFINE_PER_CPU(struct mc_buffer, mc_buffer);
|
static DEFINE_PER_CPU(struct mc_buffer, mc_buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user