]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86: Move range related operation to one file
authorYinghai Lu <yinghai@kernel.org>
Wed, 10 Feb 2010 09:20:07 +0000 (01:20 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 11 Feb 2010 01:47:17 +0000 (17:47 -0800)
commit27811d8cabe56e0c3622251b049086f49face4ff
treed3966301efca0886fa2b53d74d1f9e5f1cf55056
parentc85e4aae699360e8db4ebfe710e917ac9b6fc77e
x86: Move range related operation to one file

We have almost the same code for mtrr cleanup and amd_bus checkup, and
this code  will also be used in replacing bootmem with early_res,
so try to move them together and reuse it from different parts.

Also rename update_range to subtract_range as that is what the
function is actually doing.

-v2: update comments as Christoph requested

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1265793639-15071-4-git-send-email-yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/mtrr/cleanup.c
arch/x86/kernel/mmconf-fam10h_64.c
arch/x86/pci/amd_bus.c
include/linux/range.h [new file with mode: 0644]
kernel/Makefile
kernel/range.c [new file with mode: 0644]