Messages in this thread Patch in this message | | | Date | Mon, 1 Nov 2004 19:30:21 GMT | From | dhowells@redhat ... | Subject | [PATCH 5/14] FRV: Fork fixes |
| |
The attached patch fixes fork to get rid of the assumption that THREAD_SIZE >= PAGE_SIZE (on the FR-V the smallest available page size is 16KB).
Signed-Off-By: dhowells@redhat.com --- diffstat frv-fork-2610rc1bk10.diff fork.c | 5 +++++ 1 files changed, 5 insertions(+)
diff -uNr /warthog/kernels/linux-2.6.10-rc1-bk10/kernel/fork.c linux-2.6.10-rc1-bk10-frv/kernel/fork.c --- /warthog/kernels/linux-2.6.10-rc1-bk10/kernel/fork.c 2004-11-01 11:45:34.740160149 +0000 +++ linux-2.6.10-rc1-bk10-frv/kernel/fork.c 2004-11-01 11:47:05.153633406 +0000 @@ -118,7 +118,12 @@ * value: the thread structures can take up at most half * of memory. */ +#if THREAD_SIZE >= PAGE_SIZE max_threads = mempages / (THREAD_SIZE/PAGE_SIZE) / 8; +#else + max_threads = mempages / 8; +#endif + /* * we need to allow at least 20 threads to boot a system */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |