[CPUFREQ] constify some data tables.

Signed-off-by: Dave Jones <davej@redhat.com>

+17 -17
+2 -2
arch/i386/kernel/cpu/cpufreq/longhaul.c
··· 61 static unsigned int numscales=16; 62 static unsigned int fsb; 63 64 - static struct mV_pos *vrm_mV_table; 65 - static unsigned char *mV_vrm_table; 66 struct f_msr { 67 u8 vrm; 68 u8 pos;
··· 61 static unsigned int numscales=16; 62 static unsigned int fsb; 63 64 + static const struct mV_pos *vrm_mV_table; 65 + static const unsigned char *mV_vrm_table; 66 struct f_msr { 67 u8 vrm; 68 u8 pos;
+13 -13
arch/i386/kernel/cpu/cpufreq/longhaul.h
··· 56 /* 57 * VIA C3 Samuel 1 & Samuel 2 (stepping 0) 58 */ 59 - static int __initdata samuel1_clock_ratio[16] = { 60 -1, /* 0000 -> RESERVED */ 61 30, /* 0001 -> 3.0x */ 62 40, /* 0010 -> 4.0x */ ··· 75 -1, /* 1111 -> RESERVED */ 76 }; 77 78 - static int __initdata samuel1_eblcr[16] = { 79 50, /* 0000 -> RESERVED */ 80 30, /* 0001 -> 3.0x */ 81 40, /* 0010 -> 4.0x */ ··· 97 /* 98 * VIA C3 Samuel2 Stepping 1->15 99 */ 100 - static int __initdata samuel2_eblcr[16] = { 101 50, /* 0000 -> 5.0x */ 102 30, /* 0001 -> 3.0x */ 103 40, /* 0010 -> 4.0x */ ··· 119 /* 120 * VIA C3 Ezra 121 */ 122 - static int __initdata ezra_clock_ratio[16] = { 123 100, /* 0000 -> 10.0x */ 124 30, /* 0001 -> 3.0x */ 125 40, /* 0010 -> 4.0x */ ··· 138 120, /* 1111 -> 12.0x */ 139 }; 140 141 - static int __initdata ezra_eblcr[16] = { 142 50, /* 0000 -> 5.0x */ 143 30, /* 0001 -> 3.0x */ 144 40, /* 0010 -> 4.0x */ ··· 160 /* 161 * VIA C3 (Ezra-T) [C5M]. 162 */ 163 - static int __initdata ezrat_clock_ratio[32] = { 164 100, /* 0000 -> 10.0x */ 165 30, /* 0001 -> 3.0x */ 166 40, /* 0010 -> 4.0x */ ··· 196 -1, /* 1111 -> RESERVED (12.0x) */ 197 }; 198 199 - static int __initdata ezrat_eblcr[32] = { 200 50, /* 0000 -> 5.0x */ 201 30, /* 0001 -> 3.0x */ 202 40, /* 0010 -> 4.0x */ ··· 235 /* 236 * VIA C3 Nehemiah */ 237 238 - static int __initdata nehemiah_clock_ratio[32] = { 239 100, /* 0000 -> 10.0x */ 240 160, /* 0001 -> 16.0x */ 241 40, /* 0010 -> 4.0x */ ··· 270 120, /* 1111 -> 12.0x */ 271 }; 272 273 - static int __initdata nehemiah_eblcr[32] = { 274 50, /* 0000 -> 5.0x */ 275 160, /* 0001 -> 16.0x */ 276 40, /* 0010 -> 4.0x */ ··· 315 unsigned short pos; 316 }; 317 318 - static struct mV_pos __initdata vrm85_mV[32] = { 319 {1250, 8}, {1200, 6}, {1150, 4}, {1100, 2}, 320 {1050, 0}, {1800, 30}, {1750, 28}, {1700, 26}, 321 {1650, 24}, {1600, 22}, {1550, 20}, {1500, 18}, ··· 326 {1475, 17}, {1425, 15}, {1375, 13}, {1325, 11} 327 }; 328 329 - static unsigned char __initdata mV_vrm85[32] = { 330 0x04, 0x14, 0x03, 0x13, 0x02, 0x12, 0x01, 0x11, 331 0x00, 0x10, 0x0f, 0x1f, 0x0e, 0x1e, 0x0d, 0x1d, 332 0x0c, 0x1c, 0x0b, 0x1b, 0x0a, 0x1a, 0x09, 0x19, 333 0x08, 0x18, 0x07, 0x17, 0x06, 0x16, 0x05, 0x15 334 }; 335 336 - static struct mV_pos __initdata mobilevrm_mV[32] = { 337 {1750, 31}, {1700, 30}, {1650, 29}, {1600, 28}, 338 {1550, 27}, {1500, 26}, {1450, 25}, {1400, 24}, 339 {1350, 23}, {1300, 22}, {1250, 21}, {1200, 20}, ··· 344 {675, 3}, {650, 2}, {625, 1}, {600, 0} 345 }; 346 347 - static unsigned char __initdata mV_mobilevrm[32] = { 348 0x1f, 0x1e, 0x1d, 0x1c, 0x1b, 0x1a, 0x19, 0x18, 349 0x17, 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 350 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08,
··· 56 /* 57 * VIA C3 Samuel 1 & Samuel 2 (stepping 0) 58 */ 59 + static const int __initdata samuel1_clock_ratio[16] = { 60 -1, /* 0000 -> RESERVED */ 61 30, /* 0001 -> 3.0x */ 62 40, /* 0010 -> 4.0x */ ··· 75 -1, /* 1111 -> RESERVED */ 76 }; 77 78 + static const int __initdata samuel1_eblcr[16] = { 79 50, /* 0000 -> RESERVED */ 80 30, /* 0001 -> 3.0x */ 81 40, /* 0010 -> 4.0x */ ··· 97 /* 98 * VIA C3 Samuel2 Stepping 1->15 99 */ 100 + static const int __initdata samuel2_eblcr[16] = { 101 50, /* 0000 -> 5.0x */ 102 30, /* 0001 -> 3.0x */ 103 40, /* 0010 -> 4.0x */ ··· 119 /* 120 * VIA C3 Ezra 121 */ 122 + static const int __initdata ezra_clock_ratio[16] = { 123 100, /* 0000 -> 10.0x */ 124 30, /* 0001 -> 3.0x */ 125 40, /* 0010 -> 4.0x */ ··· 138 120, /* 1111 -> 12.0x */ 139 }; 140 141 + static const int __initdata ezra_eblcr[16] = { 142 50, /* 0000 -> 5.0x */ 143 30, /* 0001 -> 3.0x */ 144 40, /* 0010 -> 4.0x */ ··· 160 /* 161 * VIA C3 (Ezra-T) [C5M]. 162 */ 163 + static const int __initdata ezrat_clock_ratio[32] = { 164 100, /* 0000 -> 10.0x */ 165 30, /* 0001 -> 3.0x */ 166 40, /* 0010 -> 4.0x */ ··· 196 -1, /* 1111 -> RESERVED (12.0x) */ 197 }; 198 199 + static const int __initdata ezrat_eblcr[32] = { 200 50, /* 0000 -> 5.0x */ 201 30, /* 0001 -> 3.0x */ 202 40, /* 0010 -> 4.0x */ ··· 235 /* 236 * VIA C3 Nehemiah */ 237 238 + static const int __initdata nehemiah_clock_ratio[32] = { 239 100, /* 0000 -> 10.0x */ 240 160, /* 0001 -> 16.0x */ 241 40, /* 0010 -> 4.0x */ ··· 270 120, /* 1111 -> 12.0x */ 271 }; 272 273 + static const int __initdata nehemiah_eblcr[32] = { 274 50, /* 0000 -> 5.0x */ 275 160, /* 0001 -> 16.0x */ 276 40, /* 0010 -> 4.0x */ ··· 315 unsigned short pos; 316 }; 317 318 + static const struct mV_pos __initdata vrm85_mV[32] = { 319 {1250, 8}, {1200, 6}, {1150, 4}, {1100, 2}, 320 {1050, 0}, {1800, 30}, {1750, 28}, {1700, 26}, 321 {1650, 24}, {1600, 22}, {1550, 20}, {1500, 18}, ··· 326 {1475, 17}, {1425, 15}, {1375, 13}, {1325, 11} 327 }; 328 329 + static const unsigned char __initdata mV_vrm85[32] = { 330 0x04, 0x14, 0x03, 0x13, 0x02, 0x12, 0x01, 0x11, 331 0x00, 0x10, 0x0f, 0x1f, 0x0e, 0x1e, 0x0d, 0x1d, 332 0x0c, 0x1c, 0x0b, 0x1b, 0x0a, 0x1a, 0x09, 0x19, 333 0x08, 0x18, 0x07, 0x17, 0x06, 0x16, 0x05, 0x15 334 }; 335 336 + static const struct mV_pos __initdata mobilevrm_mV[32] = { 337 {1750, 31}, {1700, 30}, {1650, 29}, {1600, 28}, 338 {1550, 27}, {1500, 26}, {1450, 25}, {1400, 24}, 339 {1350, 23}, {1300, 22}, {1250, 21}, {1200, 20}, ··· 344 {675, 3}, {650, 2}, {625, 1}, {600, 0} 345 }; 346 347 + static const unsigned char __initdata mV_mobilevrm[32] = { 348 0x1f, 0x1e, 0x1d, 0x1c, 0x1b, 0x1a, 0x19, 0x18, 349 0x17, 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 350 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a, 0x09, 0x08,
+2 -2
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
··· 68 69 #ifdef CONFIG_CPU_FREQ_DEBUG 70 /* divide by 1000 to get VCore voltage in V. */ 71 - static int mobile_vid_table[32] = { 72 2000, 1950, 1900, 1850, 1800, 1750, 1700, 1650, 73 1600, 1550, 1500, 1450, 1400, 1350, 1300, 0, 74 1275, 1250, 1225, 1200, 1175, 1150, 1125, 1100, ··· 77 #endif 78 79 /* divide by 10 to get FID. */ 80 - static int fid_codes[32] = { 81 110, 115, 120, 125, 50, 55, 60, 65, 82 70, 75, 80, 85, 90, 95, 100, 105, 83 30, 190, 40, 200, 130, 135, 140, 210,
··· 68 69 #ifdef CONFIG_CPU_FREQ_DEBUG 70 /* divide by 1000 to get VCore voltage in V. */ 71 + static const int mobile_vid_table[32] = { 72 2000, 1950, 1900, 1850, 1800, 1750, 1700, 1650, 73 1600, 1550, 1500, 1450, 1400, 1350, 1300, 0, 74 1275, 1250, 1225, 1200, 1175, 1150, 1125, 1100, ··· 77 #endif 78 79 /* divide by 10 to get FID. */ 80 + static const int fid_codes[32] = { 81 110, 115, 120, 125, 50, 55, 60, 65, 82 70, 75, 80, 85, 90, 95, 100, 105, 83 30, 190, 40, 200, 130, 135, 140, 210,