From: Michal Wajdeczko Date: Tue, 11 Mar 2025 14:01:15 +0000 (+0100) Subject: drm/xe: Prefer USEC_PER_SEC over MICRO X-Git-Tag: v6.16-rc1~144^2~18^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de35cc27fdf35a966f933fa5b611181e83689e1f;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Himal Prasad Ghimiray Link: https://patchwork.freedesktop.org/patch/msgid/20250311140115.2042-1-michal.wajdeczko@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index a7dd9c7b95e52..35eb001c6c1ab 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -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;