]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, mtrr: Fix sorting of mtrr after subtracting
authorYinghai Lu <yinghai@kernel.org>
Tue, 24 Nov 2009 10:46:59 +0000 (02:46 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 24 Nov 2009 21:06:16 +0000 (13:06 -0800)
commit5bf65b9ba67226eae9ffc398a0369fc4da35c259
tree8cfea71f3b7ee3e3eaca13888dff6a4b6a83f6ac
parentb24c2a925a9837cccf54d50aeac22ba0cbc15455
x86, mtrr: Fix sorting of mtrr after subtracting

In some cases we can coalesce MTRR entries after cleanup; this may
allow us to have more entries.  As such, introduce clean_sort_range to
to sort and coaelsce the MTRR entries.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4B0BB9A3.5020908@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/mtrr/cleanup.c