Commit ba3b6c42 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher

amdgpu/powerplay: constify large struct

This moves this from being global data to global rodata, I'm
sure it would be easy to move it to being local data.
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fdd495c5
#include "pp_overdriver.h" #include "pp_overdriver.h"
#include <linux/errno.h> #include <linux/errno.h>
struct phm_fuses_default vega10_fuses_default[] = { const struct phm_fuses_default vega10_fuses_default[] = {
{"0000001000010011111010101001010011011110000011100100100101100100",0x00003C96,0xFFFFE226,0x00000656,0x00002203,0xFFFFF201,0x000003FF,0x00002203,0xFFFFF201,0x000003FF}, {"0000001000010011111010101001010011011110000011100100100101100100",0x00003C96,0xFFFFE226,0x00000656,0x00002203,0xFFFFF201,0x000003FF,0x00002203,0xFFFFF201,0x000003FF},
{"0000001000010011111010101001010011011110000010100001100010000100",0x00003CC5,0xFFFFE23A,0x0000064E,0x00002258,0xFFFFF1F7,0x000003FC,0x00002258,0xFFFFF1F7,0x000003FC}, {"0000001000010011111010101001010011011110000010100001100010000100",0x00003CC5,0xFFFFE23A,0x0000064E,0x00002258,0xFFFFF1F7,0x000003FC,0x00002258,0xFFFFF1F7,0x000003FC},
{"0000001000010011111010101001010011011110000011100011000110100100",0x00003CAF,0xFFFFE36E,0x00000602,0x00001E98,0xFFFFF569,0x00000357,0x00001E98,0xFFFFF569,0x00000357}, {"0000001000010011111010101001010011011110000011100011000110100100",0x00003CAF,0xFFFFE36E,0x00000602,0x00001E98,0xFFFFF569,0x00000357,0x00001E98,0xFFFFF569,0x00000357},
...@@ -1240,7 +1240,7 @@ struct phm_fuses_default vega10_fuses_default[] = { ...@@ -1240,7 +1240,7 @@ struct phm_fuses_default vega10_fuses_default[] = {
}; };
int pp_override_get_default_fuse_value(uint64_t key, int pp_override_get_default_fuse_value(uint64_t key,
struct phm_fuses_default list[], const struct phm_fuses_default list[],
struct phm_fuses_default *result) struct phm_fuses_default *result)
{ {
uint32_t i; uint32_t i;
......
...@@ -40,9 +40,9 @@ struct phm_fuses_default { ...@@ -40,9 +40,9 @@ struct phm_fuses_default {
uint32_t VFT0_b; uint32_t VFT0_b;
}; };
extern struct phm_fuses_default vega10_fuses_default[]; extern const struct phm_fuses_default vega10_fuses_default[];
extern int pp_override_get_default_fuse_value(uint64_t key, extern int pp_override_get_default_fuse_value(uint64_t key,
struct phm_fuses_default list[], const struct phm_fuses_default list[],
struct phm_fuses_default *result); struct phm_fuses_default *result);
#endif #endif
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment