drm/amdkfd: Move a constant definition around
authorYong Zhao <Yong.Zhao@amd.com>
Tue, 15 Jan 2019 23:51:27 +0000 (18:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Feb 2019 22:59:56 +0000 (17:59 -0500)
The similar definitions should be consecutive.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h

index 12b66330fc6d3cefaa0d1cbbfc1b270f6c380cce..e5ebcca7f03144a9b62566605ef541b2281e14ec 100644 (file)
 #define KFD_CWSR_TBA_TMA_SIZE (PAGE_SIZE * 2)
 #define KFD_CWSR_TMA_OFFSET PAGE_SIZE
 
+#define KFD_MAX_NUM_OF_QUEUES_PER_DEVICE               \
+       (KFD_MAX_NUM_OF_PROCESSES *                     \
+                       KFD_MAX_NUM_OF_QUEUES_PER_PROCESS)
+
+#define KFD_KERNEL_QUEUE_SIZE 2048
+
 /*
  * Kernel module parameter to specify maximum number of supported queues per
  * device
  */
 extern int max_num_of_queues_per_device;
 
-#define KFD_MAX_NUM_OF_QUEUES_PER_DEVICE               \
-       (KFD_MAX_NUM_OF_PROCESSES *                     \
-                       KFD_MAX_NUM_OF_QUEUES_PER_PROCESS)
-
-#define KFD_KERNEL_QUEUE_SIZE 2048
 
 /* Kernel module parameter to specify the scheduling policy */
 extern int sched_policy;