memcg: enable accounting for new namesapces and struct nsproxy
[linux-2.6-microblaze.git] / kernel / freezer.c
index dc520f0..45ab36f 100644 (file)
@@ -58,7 +58,7 @@ bool __refrigerator(bool check_kthr_stop)
        /* Hmm, should we be allowed to suspend when there are realtime
           processes around? */
        bool was_frozen = false;
-       long save = current->state;
+       unsigned int save = get_current_state();
 
        pr_debug("%s entered refrigerator\n", current->comm);