-static enum {
- S_DISABLED, /* Not enabled, nothing going on. */
- S_WAITING, /* Sleeping for SYSTEM_STATS_INTERVAL ms. */
- S_REQUEST_SENT, /* Sent a request to worker. */
- S_REPLY_RECEIVED /* Received a reply from worker. */
-} state;
-
-/* In S_WAITING state: the next time to wake up.
- * In other states: not meaningful. */
-static long long int next_refresh;
-
-/* In S_REPLY_RECEIVED: the stats that have just been received.
- * In other states: not meaningful. */
-static struct smap *received_stats;
-
-static worker_request_func system_stats_request_cb;
-static worker_reply_func system_stats_reply_cb;