]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: trim mtrr don't close gap for resource allocation.
authorYinghai Lu <yhlu.kernel.send@gmail.com>
Tue, 18 Mar 2008 23:44:19 +0000 (16:44 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 21 Mar 2008 16:06:15 +0000 (17:06 +0100)
commit5dca6a1bb014875a17289fdaae8c31e0a3641c99
treec6cb1eab44e92cedbfcee707de6ed2ad960e20e6
parentfc1c8925c8210009c1fc5d909d189252d8fb4fb2
x86: trim mtrr don't close gap for resource allocation.

fix the bug reported here:

http://bugzilla.kernel.org/show_bug.cgi?id=10232

use update_memory_range() instead of add_memory_range() directly
to avoid closing the gap.

( the new code only affects and runs on systems where the MTRR
  workaround triggers. )

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/mtrr/main.c
arch/x86/kernel/e820_32.c
arch/x86/kernel/e820_64.c
include/asm-x86/e820_32.h
include/asm-x86/e820_64.h