Skip to content

Commit

Permalink
timeout_in_sec should be u32
Browse files Browse the repository at this point in the history
Signed-off-by: Min Ma <min.ma@amd.com>
  • Loading branch information
mamin506 committed Aug 29, 2024
1 parent e6038ab commit 461af9e
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);
u32 timeout_in_sec = 2;
module_param(timeout_in_sec, u32, 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 461af9e

Please sign in to comment.