[PATCH] Cleanup patch for process freezing
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / i386 / kernel / signal.c
index b9b8f4e20fad6e79fbc5acef91115415cd3aaace..ac5b1e975c5c9ac82c5bc77c9cd1150750a3936a 100644 (file)
@@ -608,10 +608,8 @@ int fastcall do_signal(struct pt_regs *regs, sigset_t *oldset)
        if (!user_mode(regs))
                return 1;
 
-       if (current->flags & PF_FREEZE) {
-               refrigerator(0);
+       if (try_to_freeze)
                goto no_signal;
-       }
 
        if (!oldset)
                oldset = &current->blocked;