Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.3959);
	 Mon, 13 Oct 2008 10:38:14 -0700
Received: from ausesmta2-1.messageone.com ([64.20.241.45]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Mon, 13 Oct 2008 10:38:13 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by ausesmta2-1.messageone.com (8.13.8/8.13.8) with ESMTP id m9DHcCTj019528
	for <andy.sharp@onstor.com>; Mon, 13 Oct 2008 12:38:13 -0500
Received: from localhost.localdomain ([127.0.0.1]:23463 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S21402575AbYJMRhi (ORCPT <rfc822;andy.sharp@onstor.com>);
	Mon, 13 Oct 2008 18:37:38 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 13 Oct 2008 18:37:21 +0100 (BST)
Received: from mail.gmx.net ([213.165.64.20]:28893 "HELO mail.gmx.net")
	by ftp.linux-mips.org with SMTP id S21402561AbYJMRhT (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Mon, 13 Oct 2008 18:37:19 +0100
Received: (qmail invoked by alias); 13 Oct 2008 17:37:12 -0000
Received: from p548B3450.dip0.t-ipconnect.de (EHLO localhost.localdomain) [84.139.52.80]
  by mail.gmx.net (mp047) with SMTP; 13 Oct 2008 19:37:12 +0200
X-Authenticated: #16080105
X-Provags-ID: V01U2FsdGVkX1+zvIpJx62zIM5lqDupC1VALfZb+i8X5N/zI+iN42
	CQoYIrB4Rqwq93
From: Johannes Dickgreber <tanzy@gmx.de>
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Subject: [PATCH 2/2] show_cpuinfo prints the name of the calling CPU, which i think is wrong.
Date: 	Mon, 13 Oct 2008 19:36:21 +0200
Message-Id: <1223919381-24521-1-git-send-email-tanzy@gmx.de>
X-Mailer: git-send-email 1.6.0.2
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.53
X-archive-position: 20729
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: tanzy@gmx.de
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-10-13_10:2008-10-10,2008-10-13,2008-10-13 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0810130142
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 13 Oct 2008 17:38:14.0061 (UTC) FILETIME=[780415D0:01C92D5A]

Signed-off-by: Johannes Dickgreber <tanzy@gmx.de>
---
 arch/mips/kernel/proc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 9d60679..8897c53 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -38,7 +38,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
 	seq_printf(m, "processor\t\t: %ld\n", n);
 	sprintf(fmt, "cpu model\t\t: %%s V%%d.%%d%s\n",
 	        cpu_data[n].options & MIPS_CPU_FPU ? "  FPU V%d.%d" : "");
-	seq_printf(m, fmt, __cpu_name[smp_processor_id()],
+	seq_printf(m, fmt, __cpu_name[n],
 	                           (version >> 4) & 0x0f, version & 0x0f,
 	                           (fp_vers >> 4) & 0x0f, fp_vers & 0x0f);
 	seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n",
-- 
1.6.0.2


