]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/drm/ttm/ttm_bo_driver.h
drm/ttm: add BO priorities for the LRUs
[karo-tx-linux.git] / include / drm / ttm / ttm_bo_driver.h
index 8b4bec7bd57b4091f769ef25ebb145304fb3f133..c8407e737542ac2b16f85346a76747d6839d3d0f 100644 (file)
@@ -42,6 +42,8 @@
 #include <linux/spinlock.h>
 #include <linux/reservation.h>
 
+#define TTM_MAX_BO_PRIORITY    16
+
 struct ttm_backend_func {
        /**
         * struct ttm_backend_func member bind
@@ -298,7 +300,7 @@ struct ttm_mem_type_manager {
         * Protected by the global->lru_lock.
         */
 
-       struct list_head lru;
+       struct list_head lru[TTM_MAX_BO_PRIORITY];
 
        /*
         * Protected by @move_lock.
@@ -518,7 +520,7 @@ struct ttm_bo_global {
        /**
         * Protected by the lru_lock.
         */
-       struct list_head swap_lru;
+       struct list_head swap_lru[TTM_MAX_BO_PRIORITY];
 
        /**
         * Internal protection.