diff options
Diffstat (limited to 'arch/i386/kernel/cpu/common.c')
-rw-r--r-- | arch/i386/kernel/cpu/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c index 4e63d8ce602b..e476202b887f 100644 --- a/arch/i386/kernel/cpu/common.c +++ b/arch/i386/kernel/cpu/common.c | |||
@@ -650,6 +650,7 @@ __cpuinit int alloc_gdt(int cpu) | |||
650 | /* Initial PDA used by boot CPU */ | 650 | /* Initial PDA used by boot CPU */ |
651 | struct i386_pda boot_pda = { | 651 | struct i386_pda boot_pda = { |
652 | ._pda = &boot_pda, | 652 | ._pda = &boot_pda, |
653 | .cpu_number = 0, | ||
653 | }; | 654 | }; |
654 | 655 | ||
655 | static inline void set_kernel_gs(void) | 656 | static inline void set_kernel_gs(void) |
@@ -694,6 +695,7 @@ __cpuinit int init_gdt(int cpu, struct task_struct *idle) | |||
694 | 695 | ||
695 | memset(pda, 0, sizeof(*pda)); | 696 | memset(pda, 0, sizeof(*pda)); |
696 | pda->_pda = pda; | 697 | pda->_pda = pda; |
698 | pda->cpu_number = cpu; | ||
697 | 699 | ||
698 | return 1; | 700 | return 1; |
699 | } | 701 | } |