From 989d22c0561b3b85c35fb06a85e759ee7ce7c99e Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Fri, 1 Apr 2011 18:07:33 +0300 Subject: [PATCH] gpu: pvr: use already existing proc name in pr_err_process info Signed-off-by: Imre Deak Reviewed-by: Luc Verhaegen --- pvr/sgxinit.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pvr/sgxinit.c b/pvr/sgxinit.c index 6170038..d0bf38b 100644 --- a/pvr/sgxinit.c +++ b/pvr/sgxinit.c @@ -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) -- 2.39.5