diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 16:31:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 16:31:32 -0400 |
commit | 6cf78d4b3766bcd25348d72377796f9566ac8e1a (patch) | |
tree | d1c9465df24187637e456fcb4d5a47342b5fd9f6 /arch/x86/kernel/setup.c | |
parent | 0ad5c6b3c2d1183740d225944059b0fdedb2afba (diff) | |
parent | 4e26d11f52684dc8b1632a8cfe450cb5197a8464 (diff) |
Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 mm changes from Ingo Molnar:
"The main changes in this cycle were:
- reduce the x86/32 PAE per task PGD allocation overhead from 4K to
0.032k (Fenghua Yu)
- early_ioremap/memunmap() usage cleanups (Juergen Gross)
- gbpages support cleanups (Luis R Rodriguez)
- improve AMD Bulldozer (family 0x15) ASLR I$ aliasing workaround to
increase randomization by 3 bits (per bootup) (Hector
Marco-Gisbert)
- misc fixlets"
* 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mm: Improve AMD Bulldozer ASLR workaround
x86/mm/pat: Initialize __cachemode2pte_tbl[] and __pte2cachemode_tbl[] in a bit more readable fashion
init.h: Clean up the __setup()/early_param() macros
x86/mm: Simplify probe_page_size_mask()
x86/mm: Further simplify 1 GB kernel linear mappings handling
x86/mm: Use early_param_on_off() for direct_gbpages
init.h: Add early_param_on_off()
x86/mm: Simplify enabling direct_gbpages
x86/mm: Use IS_ENABLED() for direct_gbpages
x86/mm: Unexport set_memory_ro() and set_memory_rw()
x86/mm, efi: Use early_ioremap() in arch/x86/platform/efi/efi-bgrt.c
x86/mm: Use early_memunmap() instead of early_iounmap()
x86/mm/pat: Ensure different messages in STRICT_DEVMEM and PAT cases
x86/mm: Reduce PAE-mode per task pgd allocation overhead from 4K to 32 bytes
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 014466b152b5..d74ac33290ae 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -354,7 +354,7 @@ static void __init relocate_initrd(void) | |||
354 | mapaddr = ramdisk_image & PAGE_MASK; | 354 | mapaddr = ramdisk_image & PAGE_MASK; |
355 | p = early_memremap(mapaddr, clen+slop); | 355 | p = early_memremap(mapaddr, clen+slop); |
356 | memcpy(q, p+slop, clen); | 356 | memcpy(q, p+slop, clen); |
357 | early_iounmap(p, clen+slop); | 357 | early_memunmap(p, clen+slop); |
358 | q += clen; | 358 | q += clen; |
359 | ramdisk_image += clen; | 359 | ramdisk_image += clen; |
360 | ramdisk_size -= clen; | 360 | ramdisk_size -= clen; |
@@ -438,7 +438,7 @@ static void __init parse_setup_data(void) | |||
438 | data_len = data->len + sizeof(struct setup_data); | 438 | data_len = data->len + sizeof(struct setup_data); |
439 | data_type = data->type; | 439 | data_type = data->type; |
440 | pa_next = data->next; | 440 | pa_next = data->next; |
441 | early_iounmap(data, sizeof(*data)); | 441 | early_memunmap(data, sizeof(*data)); |
442 | 442 | ||
443 | switch (data_type) { | 443 | switch (data_type) { |
444 | case SETUP_E820_EXT: | 444 | case SETUP_E820_EXT: |
@@ -470,7 +470,7 @@ static void __init e820_reserve_setup_data(void) | |||
470 | E820_RAM, E820_RESERVED_KERN); | 470 | E820_RAM, E820_RESERVED_KERN); |
471 | found = 1; | 471 | found = 1; |
472 | pa_data = data->next; | 472 | pa_data = data->next; |
473 | early_iounmap(data, sizeof(*data)); | 473 | early_memunmap(data, sizeof(*data)); |
474 | } | 474 | } |
475 | if (!found) | 475 | if (!found) |
476 | return; | 476 | return; |
@@ -491,7 +491,7 @@ static void __init memblock_x86_reserve_range_setup_data(void) | |||
491 | data = early_memremap(pa_data, sizeof(*data)); | 491 | data = early_memremap(pa_data, sizeof(*data)); |
492 | memblock_reserve(pa_data, sizeof(*data) + data->len); | 492 | memblock_reserve(pa_data, sizeof(*data) + data->len); |
493 | pa_data = data->next; | 493 | pa_data = data->next; |
494 | early_iounmap(data, sizeof(*data)); | 494 | early_memunmap(data, sizeof(*data)); |
495 | } | 495 | } |
496 | } | 496 | } |
497 | 497 | ||