fork.c (9c1852b459f04f6309e40d1d167512b0a5598529) fork.c (e274795ea7b7caa0fd74ef651594382a69e2a951)
1/*
2 * linux/kernel/fork.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 */
6
7/*
8 * 'fork.c' contains the help-routines for the 'fork' system call

--- 418 unchanged lines hidden (view full) ---

427int arch_task_struct_size __read_mostly;
428#endif
429
430void __init fork_init(void)
431{
432 int i;
433#ifndef CONFIG_ARCH_TASK_STRUCT_ALLOCATOR
434#ifndef ARCH_MIN_TASKALIGN
1/*
2 * linux/kernel/fork.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 */
6
7/*
8 * 'fork.c' contains the help-routines for the 'fork' system call

--- 418 unchanged lines hidden (view full) ---

427int arch_task_struct_size __read_mostly;
428#endif
429
430void __init fork_init(void)
431{
432 int i;
433#ifndef CONFIG_ARCH_TASK_STRUCT_ALLOCATOR
434#ifndef ARCH_MIN_TASKALIGN
435#define ARCH_MIN_TASKALIGN L1_CACHE_BYTES
435#define ARCH_MIN_TASKALIGN 0
436#endif
436#endif
437 int align = min_t(int, L1_CACHE_BYTES, ARCH_MIN_TASKALIGN);
438
437 /* create a slab on which task_structs can be allocated */
438 task_struct_cachep = kmem_cache_create("task_struct",
439 /* create a slab on which task_structs can be allocated */
440 task_struct_cachep = kmem_cache_create("task_struct",
439 arch_task_struct_size, ARCH_MIN_TASKALIGN,
441 arch_task_struct_size, align,
440 SLAB_PANIC|SLAB_NOTRACK|SLAB_ACCOUNT, NULL);
441#endif
442
443 /* do the arch specific task caches init */
444 arch_task_cache_init();
445
446 set_max_threads(MAX_THREADS);
447

--- 1893 unchanged lines hidden ---
442 SLAB_PANIC|SLAB_NOTRACK|SLAB_ACCOUNT, NULL);
443#endif
444
445 /* do the arch specific task caches init */
446 arch_task_cache_init();
447
448 set_max_threads(MAX_THREADS);
449

--- 1893 unchanged lines hidden ---