sched: Add get_current_state()
[sfrench/cifs-2.6.git] / kernel / freezer.c
index dc520f01f99ddc053366ab5fdbaffd126f519c24..45ab36ffd0e79cf84fe4a47323811e27ae11357d 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);