]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Do lazy init of host PM features
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Nov 2011 15:20:03 +0000 (15:20 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 30 Nov 2011 10:12:30 +0000 (10:12 +0000)
commit2fc056c1bae5402c07bfd8dcac89068e151f9a63
tree3d4c2c934d63ebd941d9eaeba8b43b8f3dc832a2
parentf1f28611f1fb7370e2780edf958e4918e88fc36f
Do lazy init of host PM features

To avoid probing the host power management features on any
call to virInitialize, only initialize the mutex in
virNodeSuspendInit. Do lazy load of the supported PM target
mask when it is actually needed

* src/util/virnodesuspend.c: Lazy init of supported features
src/util/virnodesuspend.c