]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/hibernate_ppc.c
xnu-1504.9.17.tar.gz
[apple/xnu.git] / osfmk / ppc / hibernate_ppc.c
index 1adc102f7d0466dab045c13cf257225f3c301c3a..2bd0519948b630ea7ab39f315d70f56606a729e4 100644 (file)
@@ -54,6 +54,9 @@
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 
+unsigned int           save_kdebug_enable = 0;
+
+
 hibernate_page_list_t *
 hibernate_page_list_allocate(void)
 {
@@ -141,7 +144,7 @@ hibernate_vm_lock(void)
     if (getPerProc()->hibernate)
     {
         vm_page_lock_queues();
-        mutex_lock(&vm_page_queue_free_lock);
+        lck_mtx_lock(&vm_page_queue_free_lock);
     }
 }
 
@@ -150,7 +153,7 @@ hibernate_vm_unlock(void)
 {
     if (getPerProc()->hibernate)
     {
-        mutex_unlock(&vm_page_queue_free_lock);
+        lck_mtx_unlock(&vm_page_queue_free_lock);
         vm_page_unlock_queues();
     }
 }