~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to arch/x86/mm/memtest.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include <linux/smp.h>
7
7
#include <linux/init.h>
8
8
#include <linux/pfn.h>
9
 
 
10
 
#include <asm/e820.h>
 
9
#include <linux/memblock.h>
11
10
 
12
11
static u64 patterns[] __initdata = {
13
12
        0,
35
34
               (unsigned long long) pattern,
36
35
               (unsigned long long) start_bad,
37
36
               (unsigned long long) end_bad);
38
 
        reserve_early(start_bad, end_bad, "BAD RAM");
 
37
        memblock_x86_reserve_range(start_bad, end_bad, "BAD RAM");
39
38
}
40
39
 
41
40
static void __init memtest(u64 pattern, u64 start_phys, u64 size)
74
73
        u64 size = 0;
75
74
 
76
75
        while (start < end) {
77
 
                start = find_e820_area_size(start, &size, 1);
 
76
                start = memblock_x86_find_in_range_size(start, &size, 1);
78
77
 
79
78
                /* done ? */
80
79
                if (start >= end)