]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/cpuid.c
KVM: x86: minor size optimization
authorMathias Krause <minipli@googlemail.com>
Wed, 29 Aug 2012 23:30:13 +0000 (01:30 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 5 Sep 2012 09:41:09 +0000 (12:41 +0300)
commit326d07cb30fed2387efccd4bf3bd8e4f28719e9e
tree2cd806d2830530b81724d8d4de51aef1b683071c
parentec798660cf72c981ad8eed272487a0fe2b3222f2
KVM: x86: minor size optimization

Some fields can be constified and/or made static to reduce code and data
size.

Numbers for a 32 bit build:

        text    data     bss     dec     hex filename
before: 3351      80       0    3431     d67 cpuid.o
 after: 3391       0       0    3391     d3f cpuid.o

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/cpuid.c