diff options
author | Jerome Glisse <jglisse@redhat.com> | 2011-11-01 15:57:22 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-12-06 05:38:36 -0500 |
commit | 667b7a27c221acaea844ba41f1c0a713aba44d31 (patch) | |
tree | 2cea3d1fb60bcd81dd552022008e26c37b892fb7 /include/drm | |
parent | 3316497bcd73dcad971d79bed32571ed785a8c01 (diff) |
drm/ttm: remove split btw highmen and lowmem page
Split btw highmem and lowmem page was rendered useless by the
pool code. Remove it. Note further cleanup would change the
ttm page allocation helper to actualy take an array instead
of relying on list this could drasticly reduce the number of
function call in the common case of allocation whole buffer.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 37527d671f80..9da182b400ec 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -136,11 +136,6 @@ enum ttm_caching_state { | |||
136 | * @dummy_read_page: Page to map where the ttm_tt page array contains a NULL | 136 | * @dummy_read_page: Page to map where the ttm_tt page array contains a NULL |
137 | * pointer. | 137 | * pointer. |
138 | * @pages: Array of pages backing the data. | 138 | * @pages: Array of pages backing the data. |
139 | * @first_himem_page: Himem pages are put last in the page array, which | ||
140 | * enables us to run caching attribute changes on only the first part | ||
141 | * of the page array containing lomem pages. This is the index of the | ||
142 | * first himem page. | ||
143 | * @last_lomem_page: Index of the last lomem page in the page array. | ||
144 | * @num_pages: Number of pages in the page array. | 139 | * @num_pages: Number of pages in the page array. |
145 | * @bdev: Pointer to the current struct ttm_bo_device. | 140 | * @bdev: Pointer to the current struct ttm_bo_device. |
146 | * @be: Pointer to the ttm backend. | 141 | * @be: Pointer to the ttm backend. |
@@ -157,8 +152,6 @@ enum ttm_caching_state { | |||
157 | struct ttm_tt { | 152 | struct ttm_tt { |
158 | struct page *dummy_read_page; | 153 | struct page *dummy_read_page; |
159 | struct page **pages; | 154 | struct page **pages; |
160 | long first_himem_page; | ||
161 | long last_lomem_page; | ||
162 | uint32_t page_flags; | 155 | uint32_t page_flags; |
163 | unsigned long num_pages; | 156 | unsigned long num_pages; |
164 | struct ttm_bo_global *glob; | 157 | struct ttm_bo_global *glob; |