Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Prefer USEC_PER_SEC over MICRO
@ 2025-03-11 14:01 Michal Wajdeczko
  2025-03-11 14:34 ` Ghimiray, Himal Prasad
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Michal Wajdeczko @ 2025-03-11 14:01 UTC (permalink / raw)
  To: intel-xe; +Cc: Michal Wajdeczko

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>
---
 drivers/gpu/drm/xe/xe_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 5d79b439dd62..7d32d5c6538f 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -522,7 +522,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;
 
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-03-12 10:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 14:01 [PATCH] drm/xe: Prefer USEC_PER_SEC over MICRO Michal Wajdeczko
2025-03-11 14:34 ` Ghimiray, Himal Prasad
2025-03-11 16:12 ` ✓ CI.Patch_applied: success for " Patchwork
2025-03-11 16:13 ` ✓ CI.checkpatch: " Patchwork
2025-03-11 16:14 ` ✓ CI.KUnit: " Patchwork
2025-03-11 16:31 ` ✓ CI.Build: " Patchwork
2025-03-11 16:33 ` ✓ CI.Hooks: " Patchwork
2025-03-11 16:34 ` ✓ CI.checksparse: " Patchwork
2025-03-11 16:56 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-12  9:02 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-12 10:23   ` Michal Wajdeczko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox