[PATCH] x86: constify some parts of arch/i386/kernel/cpu/
Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
19eadf98c8
commit
7f35bf929f
@@ -159,13 +159,13 @@ union l2_cache {
|
||||
unsigned val;
|
||||
};
|
||||
|
||||
static unsigned short assocs[] = {
|
||||
static const unsigned short assocs[] = {
|
||||
[1] = 1, [2] = 2, [4] = 4, [6] = 8,
|
||||
[8] = 16,
|
||||
[0xf] = 0xffff // ??
|
||||
};
|
||||
static unsigned char levels[] = { 1, 1, 2 };
|
||||
static unsigned char types[] = { 1, 2, 3 };
|
||||
static const unsigned char levels[] = { 1, 1, 2 };
|
||||
static const unsigned char types[] = { 1, 2, 3 };
|
||||
|
||||
static void __cpuinit amd_cpuid4(int leaf, union _cpuid4_leaf_eax *eax,
|
||||
union _cpuid4_leaf_ebx *ebx,
|
||||
|
Reference in New Issue
Block a user