diff options
| author | Nils Wallménius <[email protected]> | 2016-04-10 14:30:04 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-05-05 00:20:20 +0000 |
| commit | aeba709a15ad66d3f8a2b38bada9f643ebe3dc04 (patch) | |
| tree | 3a1bb6bd816890f2282d65bd8cd3ff30aa02e2e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | |
| parent | drm/amd/powerplay: mark phm_master_table_* structs as const (diff) | |
| download | kernel-aeba709a15ad66d3f8a2b38bada9f643ebe3dc04.tar.gz kernel-aeba709a15ad66d3f8a2b38bada9f643ebe3dc04.zip | |
drm/amd: make some function-local tables static const
These tables were initialized on stack on each call, avoid that
and save a little bit of text size.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Nils Wallménius <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c index cd639c362df3..33e47a43ae32 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c @@ -141,7 +141,7 @@ out_cleanup: void amdgpu_benchmark(struct amdgpu_device *adev, int test_number) { int i; - int common_modes[AMDGPU_BENCHMARK_COMMON_MODES_N] = { + static const int common_modes[AMDGPU_BENCHMARK_COMMON_MODES_N] = { 640 * 480 * 4, 720 * 480 * 4, 800 * 600 * 4, |
