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>

security/tf_driver/tf_comm.c

index 16915be..c5aa0eb 100644 (file)
@@ -1250,9 +1250,6 @@ static int tf_send_recv(struct tf_comm *comm,
        bool wait_prepared = false;
        enum TF_COMMAND_STATE command_status = TF_COMMAND_STATE_PENDING;
        DEFINE_WAIT(wait);
-#ifdef CONFIG_FREEZER
-       unsigned long saved_flags;
-#endif
        dprintk(KERN_INFO "[pid=%d] tf_send_recv(%p)\n",
                 current->pid, command);
 
@@ -1260,11 +1257,6 @@ static int tf_send_recv(struct tf_comm *comm,
        tf_clock_timer_start();
 #endif
 
-#ifdef CONFIG_FREEZER
-       saved_flags = current->flags;
-       current->flags |= PF_FREEZER_NOSIG;
-#endif
-
        /*
         * Read all answers from the answer queue
         */
@@ -1283,7 +1275,7 @@ copy_answers:
 
                dprintk(KERN_INFO
                        "Entering refrigerator.\n");
-               refrigerator();
+               try_to_freeze();
                dprintk(KERN_INFO
                        "Left refrigerator.\n");
                goto copy_answers;
@@ -1433,11 +1425,6 @@ exit:
                wait_prepared = false;
        }
 
-#ifdef CONFIG_FREEZER
-       current->flags &= ~(PF_FREEZER_NOSIG);
-       current->flags |= (saved_flags & PF_FREEZER_NOSIG);
-#endif
-
        return result;
 }