We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f8a89 commit 0910bf0Copy full SHA for 0910bf0
kernel/fork.c
@@ -997,7 +997,7 @@ void __init __weak arch_task_cache_init(void) { }
997
static void __init set_max_threads(unsigned int max_threads_suggested)
998
{
999
u64 threads;
1000
- unsigned long nr_pages = PHYS_PFN(memblock_phys_mem_size() - memblock_reserved_size());
+ unsigned long nr_pages = memblock_estimated_nr_free_pages();
1001
1002
/*
1003
* The number of threads shall be limited such that the thread
0 commit comments