]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/evtchn: Use bitmap_for_each() in evtchn_check_pollers()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 11 Jun 2024 17:44:57 +0000 (18:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Aug 2024 09:49:26 +0000 (10:49 +0100)
It is a preprocessor-identical opencoding.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/event_channel.c

index 13b97c94d7fa82ff831a16637f500f4d2b1a5bf0..8db2ca4ba23e8da31c349a956a0478645f7e6c1d 100644 (file)
@@ -1517,9 +1517,7 @@ void evtchn_check_pollers(struct domain *d, unsigned int port)
         return;
 
     /* Wake any interested (or potentially interested) pollers. */
-    for ( vcpuid = find_first_bit(d->poll_mask, d->max_vcpus);
-          vcpuid < d->max_vcpus;
-          vcpuid = find_next_bit(d->poll_mask, d->max_vcpus, vcpuid+1) )
+    bitmap_for_each ( vcpuid, d->poll_mask, d->max_vcpus )
     {
         v = d->vcpu[vcpuid];
         if ( ((v->poll_evtchn <= 0) || (v->poll_evtchn == port)) &&