[Spice-devel] [PATCH 07/17] Fixed up cmd_sem use

alexl at redhat.com alexl at redhat.com
Tue Sep 14 12:08:57 PDT 2010


From: Alexander Larsson <alexl at redhat.com>

---
 display/res.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/display/res.c b/display/res.c
index faf3b9c..9f8c288 100644
--- a/display/res.c
+++ b/display/res.c
@@ -584,13 +584,13 @@ void PushDrawable(PDev *pdev, QXLDrawable *drawable)
 {
     QXLCommand *cmd;
 
-    EngAcquireSemaphore(pdev->Res->cmd_sem);            \
+    EngAcquireSemaphore(pdev->Res->cmd_sem);
     WaitForCmdRing(pdev);
     cmd = SPICE_RING_PROD_ITEM(pdev->cmd_ring);
     cmd->type = QXL_CMD_DRAW;
     cmd->data = PA(pdev, drawable, pdev->main_mem_slot);
     PUSH_CMD(pdev);
-    EngReleaseSemaphore(pdev->Res->cmd_sem);            \
+    EngReleaseSemaphore(pdev->Res->cmd_sem);
 }
 
 static QXLSurfaceCmd *GetSurfaceCmd(PDev *pdev)
@@ -623,13 +623,13 @@ void PushSurfaceCmd(PDev *pdev, QXLSurfaceCmd *surface_cmd)
 {
     QXLCommand *cmd;
 
-    EngAcquireSemaphore(pdev->Res->cmd_sem);            \
+    EngAcquireSemaphore(pdev->Res->cmd_sem);
     WaitForCmdRing(pdev);
     cmd = SPICE_RING_PROD_ITEM(pdev->cmd_ring);
     cmd->type = QXL_CMD_SURFACE;
     cmd->data = PA(pdev, surface_cmd, pdev->main_mem_slot);
     PUSH_CMD(pdev);
-    EngReleaseSemaphore(pdev->Res->cmd_sem);            \
+    EngReleaseSemaphore(pdev->Res->cmd_sem);
 }
 
 
@@ -2433,13 +2433,13 @@ void UpdateArea(PDev *pdev, RECTL *area, UINT32 surface_id)
     updat_cmd->update_id = ++pdev->Res->update_id;
     updat_cmd->surface_id = surface_id;
 
-    EngAcquireSemaphore(pdev->Res->cmd_sem);            \
+    EngAcquireSemaphore(pdev->Res->cmd_sem);
     WaitForCmdRing(pdev);
     cmd = SPICE_RING_PROD_ITEM(pdev->cmd_ring);
     cmd->type = QXL_CMD_UPDATE;
     cmd->data = PA(pdev, updat_cmd, pdev->main_mem_slot);
     PUSH_CMD(pdev);
-    EngReleaseSemaphore(pdev->Res->cmd_sem);            \
+    EngReleaseSemaphore(pdev->Res->cmd_sem);
     do {
 #ifdef DBG
         {
-- 
1.7.2.2



More information about the Spice-devel mailing list