]> xenbits.xensource.com Git - xen.git/commit
evtchn: type adjustments
authorJan Beulich <jbeulich@suse.com>
Tue, 8 Jun 2021 12:47:47 +0000 (14:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Jun 2021 12:47:47 +0000 (14:47 +0200)
commitdd77e859686f458a5313786deae0a63683d3cba3
tree1007b83cce55fac3def3d1e3cddddcec8723d5e8
parent3270a2d45fbbcdf9b3dd44b4b4776c1fc4682717
evtchn: type adjustments

First of all avoid "long" when "int" suffices, i.e. in particular when
merely conveying error codes. 32-bit values are slightly cheaper to
deal with on x86, and their processing is at least no more expensive on
Arm. Where possible use evtchn_port_t for port numbers and unsigned int
for other unsigned quantities in adjacent code. In evtchn_set_priority()
eliminate a local variable altogether instead of changing its type.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/common/event_channel.c
xen/include/xen/event.h