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().
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -273,6 +273,9 @@ void __next_mem_pfn_range_in_zone(u64 *idx, struct zone *zone, · 272 unmodified lines | ||
| 273 | 273 | #define for_each_free_mem_pfn_range_in_zone_from(i, zone, p_start, p_end) \ |
| 274 | 274 | for (; i != U64_MAX; \ |
| 275 | 275 | __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 | + | |
| 276 | 279 | #endif /* CONFIG_DEFERRED_STRUCT_PAGE_INIT */ |
| 277 | 280 | |
| 278 | 281 | /** |