HACK: make TF compile
Dan Willemsen [Tue, 27 Mar 2012 04:16:19 +0000 (21:16 -0700)]
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R47b1b93daee445118009e4cadcdd815132926b01

security/tf_driver/tf_comm.c

index e71f37d..c401cf8 100644 (file)
@@ -1237,11 +1237,6 @@ static int tf_send_recv(struct tf_comm *comm,
        current->flags |= PF_KTHREAD;
 #endif
 
-#ifdef CONFIG_FREEZER
-       saved_flags = current->flags;
-       current->flags |= PF_FREEZER_NOSIG;
-#endif
-
        /*
         * Read all answers from the answer queue
         */
@@ -1260,7 +1255,7 @@ copy_answers:
 
                dprintk(KERN_INFO
                        "Entering refrigerator.\n");
-               refrigerator();
+               try_to_freeze();
                dprintk(KERN_INFO
                        "Left refrigerator.\n");
                goto copy_answers;
@@ -1410,11 +1405,6 @@ exit:
                wait_prepared = false;
        }
 
-#ifdef CONFIG_FREEZER
-       current->flags &= ~(PF_FREEZER_NOSIG);
-       current->flags |= (saved_flags & PF_FREEZER_NOSIG);
-#endif
-
        return result;
 }