7 Pm::Pm_list Pm::_online(true);
8 Pm::Pm_list Pm::_suspended(true);
13 while (Pm *c = _online.front())
15 int res = c->pm_suspend();
18 d_printf(DBG_ERR, "error: pm_suspend failed for %p: %d, aborting\n", c, res);
22 if (_online.front() == c || c->pm_is_online())
24 d_printf(DBG_ERR, "error: pm_suspend failed for %p, not dequeued from online list, aborting\n", c);
34 while (Pm *c = _suspended.front())
36 int res = c->pm_resume();
38 d_printf(DBG_ERR, "error: pm_resume failed for %p: %d\n", c, res);
40 if (_suspended.front() == c)
42 d_printf(DBG_ERR, "error: pm_resume failed for %p, not dequeued from suspended list\n", c);
44 c->pm_set_state(Pm_failed);