summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/mtrr/generic.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel.send@gmail.com>2008-05-02 02:40:22 -0700
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 10:55:10 +0200
commit12031a624af7816ec7660b82be648aa3703b4ebe (patch)
tree254122ef3adebcfa51f7ffa1a7227ff1baee1d54 /arch/x86/kernel/cpu/mtrr/generic.c
parentf5098d62c1d1cede8ff23d01bbf50a421f110562 (diff)
downloadblackbird-op-linux-12031a624af7816ec7660b82be648aa3703b4ebe.tar.gz
blackbird-op-linux-12031a624af7816ec7660b82be648aa3703b4ebe.zip
x86: mtrr cleanup for converting continuous to discrete - auto detect v4
Loop through mtrr chunk_size and gran_size from 1M to 2G to find out the optimal value so user does not need to add mtrr_chunk_size and mtrr_gran_size to the kernel command line. If optimal value is not found, print out all list to help select less optimal value. Add mtrr_spare_reg_nr= so user could set 2 instead of 1, if the card need more entries. v2: find the one with more spare entries v3: fix hole_basek offset v4: tight the compare between range and range_new loop stop with 4g Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Gabriel C <nix.or.die@googlemail.com> Cc: Mika Fischer <mika.fischer@zoopnet.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr/generic.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud