Skip to content

Commit

Permalink
timeout_in_sec should be uint (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: Min Ma <min.ma@amd.com>
  • Loading branch information
mamin506 authored Aug 30, 2024
1 parent 1c15f15 commit a484a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/driver/amdxdna/amdxdna_tdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "amdxdna_drm.h"
#include "amdxdna_tdr.h"

int timeout_in_sec = 2;
module_param(timeout_in_sec, int, 0644);
uint timeout_in_sec = 2;
module_param(timeout_in_sec, uint, 0644);
MODULE_PARM_DESC(timeout_in_sec, "Seconds to timeout and recovery, default 2; 0 - No TDR");

#define TDR_TIMEOUT_JIFF msecs_to_jiffies(timeout_in_sec * 1000)
Expand Down

0 comments on commit a484a29

Please sign in to comment.