aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mtrr/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/main.c')
-rw-r--r--arch/x86/kernel/cpu/mtrr/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index b117d7f8a564..cc135572882a 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
+++ b/arch/x86/kernel/cpu/mtrr/main.c
@@ -1155,10 +1155,10 @@ struct mtrr_cleanup_result {
1155 1155
1156/* 1156/*
1157 * gran_size: 1M, 2M, ..., 2G 1157 * gran_size: 1M, 2M, ..., 2G
1158 * chunk size: gran_size, ..., 4G 1158 * chunk size: gran_size, ..., 2G
1159 * so we need (2+13)*6 1159 * so we need (1+12)*6
1160 */ 1160 */
1161#define NUM_RESULT 90 1161#define NUM_RESULT 78
1162#define PSHIFT (PAGE_SHIFT - 10) 1162#define PSHIFT (PAGE_SHIFT - 10)
1163 1163
1164static struct mtrr_cleanup_result __initdata result[NUM_RESULT]; 1164static struct mtrr_cleanup_result __initdata result[NUM_RESULT];
@@ -1276,7 +1276,7 @@ static int __init mtrr_cleanup(unsigned address_bits)
1276 memset(min_loss_pfn, 0xff, sizeof(min_loss_pfn)); 1276 memset(min_loss_pfn, 0xff, sizeof(min_loss_pfn));
1277 memset(result, 0, sizeof(result)); 1277 memset(result, 0, sizeof(result));
1278 for (gran_size = (1ULL<<20); gran_size < (1ULL<<32); gran_size <<= 1) { 1278 for (gran_size = (1ULL<<20); gran_size < (1ULL<<32); gran_size <<= 1) {
1279 for (chunk_size = gran_size; chunk_size < (1ULL<<33); 1279 for (chunk_size = gran_size; chunk_size < (1ULL<<32);
1280 chunk_size <<= 1) { 1280 chunk_size <<= 1) {
1281 int num_reg; 1281 int num_reg;
1282 1282