From: Ben Pfaff Date: Wed, 29 Sep 2010 19:54:05 +0000 (-0700) Subject: ofproto: Drop unneeded poll_immediate_wake(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8497dd41214ddaac26928f2efa90becd1b336a52;p=openvswitch ofproto: Drop unneeded poll_immediate_wake(). This poll_immediate_wake() is unnecessary because netflow_run() is always called afterward within the same poll loop. It's better to delete it, to avoid wasting CPU. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 5c871194..859f416f 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -4339,10 +4339,6 @@ rule_active_timeout(struct ofproto *ofproto, struct rule *rule) expired.used = rule->used; netflow_expire(ofproto->netflow, &rule->nf_flow, &expired); - - /* Schedule us to send the accumulated records once we have - * collected all of them. */ - poll_immediate_wake(); } }