arm64: Constify hwcap name string arrays
The hwcap string arrays used for generating the contents of /proc/cpuinfo are currently arrays of non-const pointers. There's no need for these pointers to be mutable, so this patch makes them const so that they can be moved to .rodata. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
4db8e5ea6b
commit
9299b24712
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ static char *icache_policy_str[] = {
|
||||||
|
|
||||||
unsigned long __icache_flags;
|
unsigned long __icache_flags;
|
||||||
|
|
||||||
static const char *hwcap_str[] = {
|
static const char *const hwcap_str[] = {
|
||||||
"fp",
|
"fp",
|
||||||
"asimd",
|
"asimd",
|
||||||
"evtstrm",
|
"evtstrm",
|
||||||
|
@ -62,7 +62,7 @@ static const char *hwcap_str[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
static const char *compat_hwcap_str[] = {
|
static const char *const compat_hwcap_str[] = {
|
||||||
"swp",
|
"swp",
|
||||||
"half",
|
"half",
|
||||||
"thumb",
|
"thumb",
|
||||||
|
@ -87,7 +87,7 @@ static const char *compat_hwcap_str[] = {
|
||||||
"evtstrm"
|
"evtstrm"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *compat_hwcap2_str[] = {
|
static const char *const compat_hwcap2_str[] = {
|
||||||
"aes",
|
"aes",
|
||||||
"pmull",
|
"pmull",
|
||||||
"sha1",
|
"sha1",
|
||||||
|
|
Loading…
Add table
Reference in a new issue