diff options
| author | Wei Yang <[email protected]> | 2024-06-16 01:35:37 +0000 |
|---|---|---|
| committer | Alexander Gordeev <[email protected]> | 2024-06-24 11:12:39 +0200 |
| commit | 37db17c1008c84f972da1ddd7bb10248670e6aa3 (patch) | |
| tree | 301aaa7675226e9e2e1d7bd8613f533c42d0abdd /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | 7c67928648188d193c9f73679f7e6aa67d088237 (diff) | |
s390/mm: Get total ram pages from memblock
On s390, zero page's size relies on total ram pages.
Since we plan to move the accounting into __free_pages_core(),
totalram_pages may not represent the total usable pages on system
at this point when defer_init is enabled.
We can get the total usable pages from memblock directly. The size maybe
not accurate due to the alignment, but enough for the calculation.
Signed-off-by: Wei Yang <[email protected]>
CC: Mike Rapoport (IBM) <[email protected]>
CC: David Hildenbrand <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vasily Gorbik <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions