Skip to content

Commit ea458ef

Browse files
deecempe
authored andcommitted
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 fb5924f ("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. Signed-off-by: Alastair D'Silva <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0762659 commit ea458ef

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/powerpc/mm/mem.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ int __ref arch_add_memory(int nid, u64 start, u64 size,
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

0 commit comments

Comments
 (0)