diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index f6995cdfe714..ff82e24573b6 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -432,11 +432,13 @@ void __init fork_init(void) | |||
432 | int i; | 432 | int i; |
433 | #ifndef CONFIG_ARCH_TASK_STRUCT_ALLOCATOR | 433 | #ifndef CONFIG_ARCH_TASK_STRUCT_ALLOCATOR |
434 | #ifndef ARCH_MIN_TASKALIGN | 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 = max_t(int, L1_CACHE_BYTES, ARCH_MIN_TASKALIGN); | ||
438 | |||
437 | /* create a slab on which task_structs can be allocated */ | 439 | /* create a slab on which task_structs can be allocated */ |
438 | task_struct_cachep = kmem_cache_create("task_struct", | 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); | 442 | SLAB_PANIC|SLAB_NOTRACK|SLAB_ACCOUNT, NULL); |
441 | #endif | 443 | #endif |
442 | 444 | ||