History

mm: make deferred init's max threads arch-specific

Using padata during deferred init has only been tested on x86, so for now limit it to this architecture. If another arch wants this, it can find the max thread limit that's best for it and override deferred_page_init_max_threads().

Daniel Jordan committed 6 years ago

Commit ecd09651 parent e4443143 files · +23 −5Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/memblock.h+3−0
@@ -273,6 +273,9 @@ void __next_mem_pfn_range_in_zone(u64 *idx, struct zone *zone, · 272 unmodified lines
273273 #define for_each_free_mem_pfn_range_in_zone_from(i, zone, p_start, p_end) \
274274 for (; i != U64_MAX; \
275275 __next_mem_pfn_range_in_zone(&i, zone, p_start, p_end))
276+
277+int __init deferred_page_init_max_threads(const struct cpumask *node_cpumask);
278+
276279 #endif /* CONFIG_DEFERRED_STRUCT_PAGE_INIT */
277280
278281 /**