From owner-svn-src-head@FreeBSD.ORG Tue Nov 9 00:01:55 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id F1BE61065672; Tue, 9 Nov 2010 00:01:55 +0000 (UTC) Date: Tue, 9 Nov 2010 00:01:55 +0000 From: Alexander Best To: Dag-Erling Smorgrav Message-ID: <20101109000155.GA76051@freebsd.org> References: <201011081204.oA8C4fE5030467@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011081204.oA8C4fE5030467@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r214982 - head/sys/compat/linprocfs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 00:01:56 -0000 On Mon Nov 8 10, Dag-Erling Smorgrav wrote: > Author: des > Date: Mon Nov 8 12:04:41 2010 > New Revision: 214982 > URL: http://svn.freebsd.org/changeset/base/214982 > > Log: > Fix CPU ID in /proc/cpuinfo. thanks a lot. maybe it would also be a good idea to find out where "class" and "cpu" are being defined and completely remove chose varaibles. i think the CPUID_* macros are being used in most places in the src tree (boot messages e.g.). plus there's no point really to have variables around which are being set to wrong values. > > PR: kern/56451 > Submitted by: arundel@ > MFC after: 3 weeks > > Modified: > head/sys/compat/linprocfs/linprocfs.c > > Modified: head/sys/compat/linprocfs/linprocfs.c > ============================================================================== > --- head/sys/compat/linprocfs/linprocfs.c Mon Nov 8 11:22:55 2010 (r214981) > +++ head/sys/compat/linprocfs/linprocfs.c Mon Nov 8 12:04:41 2010 (r214982) > @@ -276,11 +276,11 @@ linprocfs_docpuinfo(PFS_FILL_ARGS) > sbuf_printf(sb, > "processor\t: %d\n" > "vendor_id\t: %.20s\n" > - "cpu family\t: %d\n" > - "model\t\t: %d\n" > + "cpu family\t: %u\n" > + "model\t\t: %u\n" > "model name\t: %s\n" > - "stepping\t: %d\n\n", > - i, cpu_vendor, class, cpu, model, cpu_id & 0xf); > + "stepping\t: %u\n\n", > + i, cpu_vendor, CPUID_TO_FAMILY(cpu_id), CPUID_TO_MODEL(cpu_id), model, cpu_id & CPUID_STEPPING); > /* XXX per-cpu vendor / class / model / id? */ > } > -- a13x