]> git.baikalelectronics.ru Git - kernel.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)
commitb17b687cb5f89b1c1ca7b9c5de1445c57323638b
treec6cb1eab44e92cedbfcee707de6ed2ad960e20e6
parentefbe44b8422ceeeaccb8804eada9157c038ecbe0
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