x86/HPET: don't needlessly set up channels for broadcast
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2012 07:25:42 +0000 (09:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2012 07:25:42 +0000 (09:25 +0200)
commitc22039af8eeb0adfd4c0047aa1fbde43a0e8ef80
treeb6f936a73bc5129353a2ad3d7195b39cccd8a184
parent2bdeacb5195c0f33a5bf2131241523c869daf8df
x86/HPET: don't needlessly set up channels for broadcast

When there are more FSB delivery capable HPET channels than CPU cores
(or threads), we can simply use a dedicated channel per CPU. This
avoids wasting the resources to handle the excess channels (including
the pointless triggering of the respective interrupt on each
wraparound) as well as the ping-pong of the interrupts' affinities
(when getting assigned to different CPUs).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hpet.c