From: Jeremy Fitzhardinge Date: Sat, 18 Dec 2010 01:33:11 +0000 (-0800) Subject: xen/multicall: move *idx fields to start of mc_buffer X-Git-Tag: firefly_0821_release~3680^2~4815^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2a6f6d095509c7dc6e9ff8d9fd9fba0b730ecce3;p=firefly-linux-kernel-4.4.55.git xen/multicall: move *idx fields to start of mc_buffer The CPU would prefer small offsets. Signed-off-by: Jeremy Fitzhardinge --- 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);