diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-09-29 13:39:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-09-29 18:34:08 -0700 |
commit | 73436a1d2501575f9c2e6ddb26889145e23cefd8 (patch) | |
tree | b612837e4f2035c53d183c9d71ffc0d2c431c00e /arch/x86/kernel/cpu/mtrr | |
parent | 8f0afaa58e912bbe7d5b0bad9fb024337edf363e (diff) | |
download | kernel-crypto-73436a1d2501575f9c2e6ddb26889145e23cefd8.tar.gz kernel-crypto-73436a1d2501575f9c2e6ddb26889145e23cefd8.tar.xz kernel-crypto-73436a1d2501575f9c2e6ddb26889145e23cefd8.zip |
x86: mtrr_cleanup safe to get more spare regs now
Delay exit to make sure we can actually get the optimal result in as
many cases as possible.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c index bccf57f5b61..ae0ca97e20b 100644 --- a/arch/x86/kernel/cpu/mtrr/main.c +++ b/arch/x86/kernel/cpu/mtrr/main.c @@ -1353,10 +1353,8 @@ static int __init mtrr_cleanup(unsigned address_bits) nr_mtrr_spare_reg = num_var_ranges - 1; num_reg_good = -1; for (i = num_var_ranges - nr_mtrr_spare_reg; i > 0; i--) { - if (!min_loss_pfn[i]) { + if (!min_loss_pfn[i]) num_reg_good = i; - break; - } } index_good = -1; |