Skip to content

Commit

Permalink
x86: cpu_index build fix
Browse files Browse the repository at this point in the history
fix:

 arch/x86/kernel/cpu/common.c: In function 'early_identify_cpu':
 arch/x86/kernel/cpu/common.c:553: error: 'struct cpuinfo_x86' has no member named 'cpu_index'

as cpu_index is only available on SMP.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Oct 30, 2008
1 parent bfcb4c1 commit 1c4acdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/cpu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)

validate_pat_support(c);

#ifdef CONFIG_SMP
c->cpu_index = boot_cpu_id;
#endif
}

void __init early_cpu_init(void)
Expand Down

0 comments on commit 1c4acdb

Please sign in to comment.