diff options
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/main.c | 8 |
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 b1bd1038c913..8f1a342b16b7 100644 --- a/arch/x86/kernel/cpu/mtrr/main.c +++ b/arch/x86/kernel/cpu/mtrr/main.c | |||
@@ -1197,11 +1197,11 @@ struct mtrr_cleanup_result { | |||
1197 | }; | 1197 | }; |
1198 | 1198 | ||
1199 | /* | 1199 | /* |
1200 | * gran_size: 1M, 2M, ..., 2G | 1200 | * gran_size: 64K, 128K, 256K, 512K, 1M, 2M, ..., 2G |
1201 | * chunk size: gran_size, ..., 2G | 1201 | * chunk size: gran_size, ..., 2G |
1202 | * so we need (1+12)*6 | 1202 | * so we need (1+16)*8 |
1203 | */ | 1203 | */ |
1204 | #define NUM_RESULT 78 | 1204 | #define NUM_RESULT 136 |
1205 | #define PSHIFT (PAGE_SHIFT - 10) | 1205 | #define PSHIFT (PAGE_SHIFT - 10) |
1206 | 1206 | ||
1207 | static struct mtrr_cleanup_result __initdata result[NUM_RESULT]; | 1207 | static struct mtrr_cleanup_result __initdata result[NUM_RESULT]; |
@@ -1323,7 +1323,7 @@ static int __init mtrr_cleanup(unsigned address_bits) | |||
1323 | i = 0; | 1323 | i = 0; |
1324 | memset(min_loss_pfn, 0xff, sizeof(min_loss_pfn)); | 1324 | memset(min_loss_pfn, 0xff, sizeof(min_loss_pfn)); |
1325 | memset(result, 0, sizeof(result)); | 1325 | memset(result, 0, sizeof(result)); |
1326 | for (gran_size = (1ULL<<20); gran_size < (1ULL<<32); gran_size <<= 1) { | 1326 | for (gran_size = (1ULL<<16); gran_size < (1ULL<<32); gran_size <<= 1) { |
1327 | char gran_factor; | 1327 | char gran_factor; |
1328 | unsigned long gran_base; | 1328 | unsigned long gran_base; |
1329 | 1329 | ||