#include <mach/machine.h>
#include <mach/processor_info.h>
#include <mach/mach_types.h>
-#include <default_pager/default_pager_internal.h>
#include <IOKit/IOPlatformExpert.h>
#include <IOKit/IOHibernatePrivate.h>
hibernate_reset_stats();
- if (vmflush && (COMPRESSED_PAGER_IS_ACTIVE || dp_isssd)) {
+ if (vmflush && VM_CONFIG_COMPRESSOR_IS_PRESENT) {
sync_internal();
- if (COMPRESSED_PAGER_IS_ACTIVE) {
- vm_decompressor_lock();
- need_to_unlock_decompressor = TRUE;
- }
+ vm_decompressor_lock();
+ need_to_unlock_decompressor = TRUE;
+
hibernate_flush_memory();
}
if (page_list_pal)
kfree(page_list_pal, page_list_pal->list_size);
- if (COMPRESSED_PAGER_IS_ACTIVE) {
+ if (VM_CONFIG_COMPRESSOR_IS_PRESENT) {
if (need_to_unlock_decompressor == TRUE) {
need_to_unlock_decompressor = FALSE;
vm_decompressor_unlock();