gpu: pvr: use already existing proc name in pr_err_process info
authorImre Deak <imre.deak@nokia.com>
Fri, 1 Apr 2011 15:07:33 +0000 (18:07 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:43:05 +0000 (21:43 +0300)
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Luc Verhaegen <libv@codethink.co.uk>
pvr/sgxinit.c

index 6170038..d0bf38b 100644 (file)
@@ -641,17 +641,10 @@ static struct PVRSRV_PER_PROCESS_DATA *find_cur_proc_data(
 
 static void pr_err_process_info(struct PVRSRV_PER_PROCESS_DATA *proc)
 {
-       struct task_struct *tsk;
-       int pid;
-
        if (!proc)
                return;
 
-       pid = proc->ui32PID;
-       rcu_read_lock();
-       tsk = pid_task(find_vpid(pid), PIDTYPE_PID);
-       pr_err("PID = %d, process name = %s\n", pid, tsk->comm);
-       rcu_read_unlock();
+       pr_err("PID = %d, process name = %s\n", proc->ui32PID, proc->name);
 }
 
 static void pr_err_sgx_registers(struct PVRSRV_SGXDEV_INFO *psDevInfo)