]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: eoi micro-optimization
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Apr 2012 09:57:10 +0000 (12:57 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Apr 2012 20:00:07 +0000 (23:00 +0300)
commit33b3aa018de3309ce6eb1ccf51d5f91db7536fec
tree413a988868a193d9fe3472aa73a9236d5fe3ffc4
parent26de31f2c372745dd2ceeb991278a9aeb50673e4
x86: eoi micro-optimization

We know both register and value for eoi beforehand,
so there's no need to check it and no need to do math
to calculate the msr. Saves instructions/branches
on each EOI when using x2apic.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
arch/x86/include/asm/apic.h
arch/x86/kernel/apic/x2apic_cluster.c
arch/x86/kernel/apic/x2apic_phys.c
arch/x86/kernel/apic/x2apic_uv_x.c