From: Akinobu Mita <akinobu.mita@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Mike Travis <travis@sgi.com>, Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH -mm] fix wrong /proc/cpuinfo output
Date: Tue, 9 Oct 2007 19:43:21 +0900 [thread overview]
Message-ID: <20071009104321.GA32272@APFDCB5C> (raw)
This patch fixes the problem introduced by:
http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc8/2.6.23-rc8-mm2/broken-out/x86-convert-cpuinfo_x86-array-to-a-per_cpu-array.patch
The problem is that every processor line in /proc/cpuinfo displays zero
on x86_64.
$ grep processor /proc/cpuinfo
processor : 0
processor : 0
Because early_identify_cpu() overwrites c->cpu_index for every cpuinfo.
This patch removes that unnecessary initialization for c->cpu_index.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Index: 2.6-mm/arch/x86_64/kernel/setup.c
===================================================================
--- 2.6-mm.orig/arch/x86_64/kernel/setup.c
+++ 2.6-mm/arch/x86_64/kernel/setup.c
@@ -967,7 +967,6 @@ void __cpuinit early_identify_cpu(struct
#ifdef CONFIG_SMP
c->phys_proc_id = (cpuid_ebx(1) >> 24) & 0xff;
- c->cpu_index = 0;
#endif
/* AMD-defined flags: level 0x80000001 */
xlvl = cpuid_eax(0x80000000);
next reply other threads:[~2007-10-09 10:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 10:43 Akinobu Mita [this message]
2007-10-09 13:32 ` [PATCH -mm] fix wrong /proc/cpuinfo output Ahmed S. Darwish
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071009104321.GA32272@APFDCB5C \
--to=akinobu.mita@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=travis@sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.