]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Prefer USEC_PER_SEC over MICRO
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 11 Mar 2025 14:01:15 +0000 (15:01 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 12 Mar 2025 10:44:51 +0000 (11:44 +0100)
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
drivers/gpu/drm/xe/xe_device.c

index a7dd9c7b95e522bf27ec8c7e20c90a6786b3ef30..35eb001c6c1ab93dba4f13c22b13382228f5f55d 100644 (file)
@@ -514,7 +514,7 @@ static bool xe_driver_flr_disabled(struct xe_device *xe)
  */
 static void __xe_driver_flr(struct xe_device *xe)
 {
-       const unsigned int flr_timeout = 3 * MICRO; /* specs recommend a 3s wait */
+       const unsigned int flr_timeout = 3 * USEC_PER_SEC; /* specs recommend a 3s wait */
        struct xe_mmio *mmio = xe_root_tile_mmio(xe);
        int ret;