Skip to content

Commit de35cc2

Browse files
committed
drm/xe: Prefer USEC_PER_SEC over MICRO
It will be easier to understand the meaning of the flr_timeout value if the USEC_PER_SEC macro is used in the expression. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250311140115.2042-1-michal.wajdeczko@intel.com
1 parent 92a5bd3 commit de35cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static bool xe_driver_flr_disabled(struct xe_device *xe)
514514
*/
515515
static void __xe_driver_flr(struct xe_device *xe)
516516
{
517-
const unsigned int flr_timeout = 3 * MICRO; /* specs recommend a 3s wait */
517+
const unsigned int flr_timeout = 3 * USEC_PER_SEC; /* specs recommend a 3s wait */
518518
struct xe_mmio *mmio = xe_root_tile_mmio(xe);
519519
int ret;
520520

0 commit comments

Comments
 (0)