]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/HPET: adjust types
authorJan Beulich <jbeulich@novell.com>
Sat, 12 Mar 2011 13:20:51 +0000 (13:20 +0000)
committerJan Beulich <jbeulich@novell.com>
Sat, 12 Mar 2011 13:20:51 +0000 (13:20 +0000)
commit418df701ce4ee54e2ecd5a33f8aa3340ac468e2d
treeb648a16fb6790c42c69af13536e5147f711f060a
parenta03ac7d945f06fa65eb474ba570c253caf9f7567
x86/HPET: adjust types

'unsigned int' is better suited as an array index on x86-64.

'u32' produces better code than 'unsigned long' on x86-64, so use the
former for storing 32-bit values read from the hardware.

this_cpu() uses an implicit smp_processor_id(), and hence using
per_cpu() when the result of smp_processor_id() is already available
is more efficient.

Fold one case of cpu_isset()+cpu_clear() into cpu_test_and_clear().

Drop the unused return value of evt_do_broadcast().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Wei Gang <gang.wei@intel.com>
xen/arch/x86/hpet.c