Skip to content

Commit

Permalink
CR-1164853_Linux_Coding_Style_Adjust (Xilinx#7574)
Browse files Browse the repository at this point in the history
* CR-1164853_Linux_Coding_Style_Adjust

Signed-off-by: Prapul Krishnamurthy <[email protected]>

* Review changes

Signed-off-by: Prapul Krishnamurthy <[email protected]>

---------

Signed-off-by: Prapul Krishnamurthy <[email protected]>
Co-authored-by: Prapul Krishnamurthy <[email protected]>
  • Loading branch information
prapulkrishnamurthy and Prapul Krishnamurthy authored Jun 7, 2023
1 parent 5f42d8a commit 7d812cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime_src/core/pcie/driver/linux/xocl/subdev/xgq_vmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static bool xgq_submitted_cmd_check(struct xocl_xgq_vmr *xgq)
xgq_cmd = list_entry(pos, struct xocl_xgq_vmr_cmd, xgq_cmd_list);

/* Finding timed out cmds */
if (xgq_cmd->xgq_cmd_timeout_jiffies < jiffies) {
if (time_after(jiffies, xgq_cmd->xgq_cmd_timeout_jiffies)) {
XGQ_ERR(xgq, "cmd id: %d op: 0x%x timed out, hot reset is required!",
xgq_cmd->xgq_cmd_entry.hdr.cid,
xgq_cmd->xgq_cmd_entry.hdr.opcode);
Expand All @@ -330,7 +330,7 @@ static void xgq_submitted_cmds_drain(struct xocl_xgq_vmr *xgq)
xgq_cmd = list_entry(pos, struct xocl_xgq_vmr_cmd, xgq_cmd_list);

/* Finding timed out cmds */
if (xgq_cmd->xgq_cmd_timeout_jiffies < jiffies) {
if (time_after(jiffies, xgq_cmd->xgq_cmd_timeout_jiffies)) {
list_del(pos);

xgq_cmd->xgq_cmd_rcode = -ETIME;
Expand Down

0 comments on commit 7d812cf

Please sign in to comment.