memory: Avoid 100% CPU when there is nothing to report.
authorBen Pfaff <blp@nicira.com>
Thu, 11 Apr 2013 22:05:32 +0000 (15:05 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Apr 2013 22:52:58 +0000 (15:52 -0700)
commit1c85959e0c8a2c60d8b864d28dfcc7ab55c95a19
tree19192516ab197934d7aa860c224080932f93374a
parentf28b6dd3f49d355b18e631e441f52611de4e8b13
memory: Avoid 100% CPU when there is nothing to report.

Commit b9de4087685 (memory: Avoid an empty log message if there's nothing
to log.) introduced a 100% CPU usage condition when there is nothing to
log.  This fixes the problem.

Reported-by: Ansis Atteka <aatteka@nicira.com>
Acked-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/memory.c