Re: [Patch1/2] fix wrong proc cpuinfo on x64

2007-11-06 Thread Andreas Herrmann
On Tue, Nov 06, 2007 at 03:25:39PM +0800, Zou Nan hai wrote: > > in 2.6.24-rc1 kernel, > The /proc/cpuinfo display is wrong. > > One issue is every processor id appears to be 0. > > That is because smp_store_cpu_info will set cpuinfo_x86->cpu_index > to cpu id then call identify_cpu >

Re: [Patch1/2] fix wrong proc cpuinfo on x64

2007-11-06 Thread Andreas Herrmann
On Tue, Nov 06, 2007 at 03:25:39PM +0800, Zou Nan hai wrote: in 2.6.24-rc1 kernel, The /proc/cpuinfo display is wrong. One issue is every processor id appears to be 0. That is because smp_store_cpu_info will set cpuinfo_x86-cpu_index to cpu id then call identify_cpu identify_cpu will

[Patch1/2] fix wrong proc cpuinfo on x64

2007-11-05 Thread Zou Nan hai
in 2.6.24-rc1 kernel, The /proc/cpuinfo display is wrong. One issue is every processor id appears to be 0. That is because smp_store_cpu_info will set cpuinfo_x86->cpu_index to cpu id then call identify_cpu identify_cpu will call early_identify_cpu which set c->cpu_index back to 0. This patch

[Patch1/2] fix wrong proc cpuinfo on x64

2007-11-05 Thread Zou Nan hai
in 2.6.24-rc1 kernel, The /proc/cpuinfo display is wrong. One issue is every processor id appears to be 0. That is because smp_store_cpu_info will set cpuinfo_x86-cpu_index to cpu id then call identify_cpu identify_cpu will call early_identify_cpu which set c-cpu_index back to 0. This patch