diff options
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index f07005e6f461..c64ca5929cb5 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -1510,7 +1510,7 @@ void cpu_init(void) | |||
1510 | for (i = 0; i <= IO_BITMAP_LONGS; i++) | 1510 | for (i = 0; i <= IO_BITMAP_LONGS; i++) |
1511 | t->io_bitmap[i] = ~0UL; | 1511 | t->io_bitmap[i] = ~0UL; |
1512 | 1512 | ||
1513 | atomic_inc(&init_mm.mm_count); | 1513 | mmgrab(&init_mm); |
1514 | me->active_mm = &init_mm; | 1514 | me->active_mm = &init_mm; |
1515 | BUG_ON(me->mm); | 1515 | BUG_ON(me->mm); |
1516 | enter_lazy_tlb(&init_mm, me); | 1516 | enter_lazy_tlb(&init_mm, me); |
@@ -1561,7 +1561,7 @@ void cpu_init(void) | |||
1561 | /* | 1561 | /* |
1562 | * Set up and load the per-CPU TSS and LDT | 1562 | * Set up and load the per-CPU TSS and LDT |
1563 | */ | 1563 | */ |
1564 | atomic_inc(&init_mm.mm_count); | 1564 | mmgrab(&init_mm); |
1565 | curr->active_mm = &init_mm; | 1565 | curr->active_mm = &init_mm; |
1566 | BUG_ON(curr->mm); | 1566 | BUG_ON(curr->mm); |
1567 | enter_lazy_tlb(&init_mm, curr); | 1567 | enter_lazy_tlb(&init_mm, curr); |