History

powerpc: Don't flush caches when adding memory

This operation takes a significant amount of time when hotplugging large amounts of memory (~50 seconds with 890GB of persistent memory). This was orignally in commit fb5924fddf9e ("powerpc/mm: Flush cache on memory hot(un)plug") to support memtrace, but the flush on add is not needed as it is flushed on remove.

Alastair D'Silva committed 7 years ago

Commit ea458ef1 parent 07626591 file · +0 −2Browse files

Unified · Split

arch/powerpc/mm/mem.c+0−2
@@ -142,8 +142,6 @@ int __ref arch_add_memory(int nid, u64 start, u64 size, · 141 unmodified lines
142142 return -EFAULT;
143143 }
144144
145− flush_dcache_range_chunked(start, start + size, FLUSH_CHUNK_SIZE);
146−
147145 return __add_pages(nid, start_pfn, nr_pages, restrictions);
148146 }
149147

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t