workqueue: introduce workqueue_struct->singlethread
[powerpc.git] / kernel / power / snapshot.c
index f66e441..48383ea 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/suspend.h>
-#include <linux/smp_lock.h>
 #include <linux/delay.h>
 #include <linux/bitops.h>
 #include <linux/spinlock.h>
@@ -723,19 +722,19 @@ int create_basic_memory_bitmaps(void)
 
        BUG_ON(forbidden_pages_map || free_pages_map);
 
-       bm1 = kzalloc(sizeof(struct memory_bitmap), GFP_ATOMIC);
+       bm1 = kzalloc(sizeof(struct memory_bitmap), GFP_KERNEL);
        if (!bm1)
                return -ENOMEM;
 
-       error = memory_bm_create(bm1, GFP_ATOMIC | __GFP_COLD, PG_ANY);
+       error = memory_bm_create(bm1, GFP_KERNEL, PG_ANY);
        if (error)
                goto Free_first_object;
 
-       bm2 = kzalloc(sizeof(struct memory_bitmap), GFP_ATOMIC);
+       bm2 = kzalloc(sizeof(struct memory_bitmap), GFP_KERNEL);
        if (!bm2)
                goto Free_first_bitmap;
 
-       error = memory_bm_create(bm2, GFP_ATOMIC | __GFP_COLD, PG_ANY);
+       error = memory_bm_create(bm2, GFP_KERNEL, PG_ANY);
        if (error)
                goto Free_second_object;
 
@@ -1228,7 +1227,7 @@ asmlinkage int swsusp_save(void)
        nr_copy_pages = nr_pages;
        nr_meta_pages = DIV_ROUND_UP(nr_pages * sizeof(long), PAGE_SIZE);
 
-       printk("swsusp: critical section/: done (%d pages copied)\n", nr_pages);
+       printk("swsusp: critical section: done (%d pages copied)\n", nr_pages);
 
        return 0;
 }