diff options
-rw-r--r-- | fs/pstore/ram_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c index 9d7b9a83699e..24f94b0f2270 100644 --- a/fs/pstore/ram_core.c +++ b/fs/pstore/ram_core.c | |||
@@ -392,7 +392,7 @@ static void *persistent_ram_vmap(phys_addr_t start, size_t size) | |||
392 | page_start = start - offset_in_page(start); | 392 | page_start = start - offset_in_page(start); |
393 | page_count = DIV_ROUND_UP(size + offset_in_page(start), PAGE_SIZE); | 393 | page_count = DIV_ROUND_UP(size + offset_in_page(start), PAGE_SIZE); |
394 | 394 | ||
395 | prot = pgprot_noncached(PAGE_KERNEL); | 395 | prot = pgprot_writecombine(PAGE_KERNEL); |
396 | 396 | ||
397 | pages = kmalloc_array(page_count, sizeof(struct page *), GFP_KERNEL); | 397 | pages = kmalloc_array(page_count, sizeof(struct page *), GFP_KERNEL); |
398 | if (!pages) { | 398 | if (!pages) { |
@@ -422,7 +422,7 @@ static void *persistent_ram_iomap(phys_addr_t start, size_t size) | |||
422 | buffer_start_add = buffer_start_add_locked; | 422 | buffer_start_add = buffer_start_add_locked; |
423 | buffer_size_add = buffer_size_add_locked; | 423 | buffer_size_add = buffer_size_add_locked; |
424 | 424 | ||
425 | return ioremap(start, size); | 425 | return ioremap_wc(start, size); |
426 | } | 426 | } |
427 | 427 | ||
428 | static int persistent_ram_buffer_map(phys_addr_t start, phys_addr_t size, | 428 | static int persistent_ram_buffer_map(phys_addr_t start, phys_addr_t size, |