git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ofproto-dpif-governor: Wake up only when there is genuinely work to do.
[sliver-openvswitch.git]
/
ofproto
/
ofproto-dpif-governor.c
diff --git
a/ofproto/ofproto-dpif-governor.c
b/ofproto/ofproto-dpif-governor.c
index
817186a
..
458f8d7
100644
(file)
--- a/
ofproto/ofproto-dpif-governor.c
+++ b/
ofproto/ofproto-dpif-governor.c
@@
-93,7
+93,9
@@
governor_run(struct governor *g)
void
governor_wait(struct governor *g)
{
- poll_timer_wait_until(g->start + MAX_ELAPSED);
+ if (g->size > MIN_SIZE) {
+ poll_timer_wait_until(g->start + MAX_ELAPSED);
+ }
}
/* Returns true if 'g' has been doing only a minimal amount of work and thus