Skip to contentSkip to conversation

dma-buf: use wake_up_process() instead of wake_up_state()

PATCH In review Wang Qing 2 participants 3 messages Mar 19, 2021

Subsystems (3)
lore
Share & tools
lore

Wang Qing

author
#0 lore raw

PATCH 1/1 dma-buf: use wake_up_process() instead of wake_up_state()

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

---
 drivers/dma-buf/dma-fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma-buf/dma-fence.c +1 -1
index 7475e09..de51326
@@ -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);
 }
 
 /**
Signature · 1 line
2.7.4
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 19.03.21 um 03:58 schrieb Wang Qing:

Quoted 4 lines

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

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

Thanks,
Christian.

Quoted 9 lines
---
  drivers/dma-buf/dma-fence.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma-buf/dma-fence.c +0 -0
index 7475e09..de51326

drivers/dma-buf/dma-fence.c dma_fence_default_wait_cb(struct dma_fence *fence, struct dma_fence_cb *cb) · line 661

Quoted 8 lines
drivers/dma-buf/dma-fence.c +1 -1
@@ -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);
  }
 
  /**

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author
#2 lore raw
Quoted 10 lines
Quoted 5 lines

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

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.

Quoted 3 lines

Thanks,
Christian.