linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dma-buf: use wake_up_process() instead of wake_up_state()
@ 2021-03-19  2:58 Wang Qing
  2021-03-19  8:07 ` Christian König
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Qing @ 2021-03-19  2:58 UTC (permalink / raw)
  To: Sumit Semwal, Gustavo Padovan, Christian König, linux-media,
	dri-devel, linaro-mm-sig, linux-kernel
  Cc: Wang Qing

Using wake_up_process() is more simpler and friendly, 
and it is more convenient for analysis and statistics

Signed-off-by: Wang Qing <wangqing@vivo.com>
---
 drivers/dma-buf/dma-fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index 7475e09..de51326
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -655,7 +655,7 @@ dma_fence_default_wait_cb(struct dma_fence *fence, struct dma_fence_cb *cb)
 	struct default_wait_cb *wait =
 		container_of(cb, struct default_wait_cb, base);
 
-	wake_up_state(wait->task, TASK_NORMAL);
+	wake_up_process(wait->task);
 }
 
 /**
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dma-buf: use wake_up_process() instead of wake_up_state()
  2021-03-19  2:58 [PATCH] dma-buf: use wake_up_process() instead of wake_up_state() Wang Qing
@ 2021-03-19  8:07 ` Christian König
  2021-03-19  8:17   ` 王擎
  0 siblings, 1 reply; 3+ messages in thread
From: Christian König @ 2021-03-19  8:07 UTC (permalink / raw)
  To: Wang Qing, Sumit Semwal, Gustavo Padovan, linux-media, dri-devel,
	linaro-mm-sig, linux-kernel

Am 19.03.21 um 03:58 schrieb Wang Qing:
> Using wake_up_process() is more simpler and friendly,
> and it is more convenient for analysis and statistics
>
> Signed-off-by: Wang Qing <wangqing@vivo.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

Should I pick it up or do you want to push it through some other tree 
than DRM?

Thanks,
Christian.

> ---
>   drivers/dma-buf/dma-fence.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
> index 7475e09..de51326
> --- a/drivers/dma-buf/dma-fence.c
> +++ b/drivers/dma-buf/dma-fence.c
> @@ -655,7 +655,7 @@ dma_fence_default_wait_cb(struct dma_fence *fence, struct dma_fence_cb *cb)
>   	struct default_wait_cb *wait =
>   		container_of(cb, struct default_wait_cb, base);
>   
> -	wake_up_state(wait->task, TASK_NORMAL);
> +	wake_up_process(wait->task);
>   }
>   
>   /**


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:Re: [PATCH] dma-buf: use wake_up_process() instead of wake_up_state()
  2021-03-19  8:07 ` Christian König
@ 2021-03-19  8:17   ` 王擎
  0 siblings, 0 replies; 3+ messages in thread
From: 王擎 @ 2021-03-19  8:17 UTC (permalink / raw)
  To: Christian König; +Cc: linux-media, linux-kernel


>> Using wake_up_process() is more simpler and friendly,
>> and it is more convenient for analysis and statistics
>>
>> Signed-off-by: Wang Qing <wangqing@vivo.com>
>
>Reviewed-by: Christian König <christian.koenig@amd.com>
>
>Should I pick it up or do you want to push it through some other tree 
>than DRM?

Pick it up just fine, thanks,
WangQing.

>
>Thanks,
>Christian.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-19  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19  2:58 [PATCH] dma-buf: use wake_up_process() instead of wake_up_state() Wang Qing
2021-03-19  8:07 ` Christian König
2021-03-19  8:17   ` 王擎

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).