Skip to content

Commit

Permalink
Revert "x86: fix show cpuinfo cpu number always zero"
Browse files Browse the repository at this point in the history
This reverts commit fbdcf18.

As pointed out by Yanmin Zhang, the problem was already fixed
differently (and correctly), and rather than fix anything, it actually
causes us to create a sub-optimal sched-domains hierarchy (not setting
up the domain belonging to the core) when CONFIG_X86_HT=y.

Requested-by: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed Dec 26, 2007
1 parent 5356f66 commit 0068441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ static void __cpuinit smp_store_cpu_info(int id)
struct cpuinfo_x86 *c = &cpu_data(id);

*c = boot_cpu_data;
identify_cpu(c);
c->cpu_index = id;
identify_cpu(c);
print_cpu_info(c);
}

Expand Down

0 comments on commit 0068441

Please sign in to comment.