]> git.baikalelectronics.ru Git - kernel.git/commit
x86/asm/64: Drop __cacheline_aligned from struct x86_hw_tss
authorAndy Lutomirski <luto@kernel.org>
Mon, 20 Feb 2017 16:56:13 +0000 (08:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Feb 2017 10:49:02 +0000 (11:49 +0100)
commita2c121368b86ceb953233320ed4a17188aac4e74
tree04ca7007d10c0e3dedce08a64ef00990fbc299c4
parentd4a308598b4f0dfc53ee3b1226b5b5c604907ed2
x86/asm/64: Drop __cacheline_aligned from struct x86_hw_tss

Historically, the entire TSS + io bitmap structure was cacheline
aligned, but commit 20fb44f043b0 ("x86: unify tss_struct") changed it
(presumably inadvertently) so that the fixed-layout hardware part is
cacheline-aligned and the io bitmap is after the padding.  This wastes
24 bytes (the hardware part should be 104 bytes, but this pads it to
128 bytes) and, serves no purpose, and causes sizeof(struct
x86_hw_tss) to have a confusing value.

Drop the pointless alignment.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/processor.h