From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758192Ab0EKDPe (ORCPT ); Mon, 10 May 2010 23:15:34 -0400 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:40618 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754438Ab0EKDPb (ORCPT ); Mon, 10 May 2010 23:15:31 -0400 Date: Tue, 11 May 2010 12:14:47 +0900 From: Paul Mundt To: Eduardo Valentin Cc: LKML , "linux-arm-kernel@lists.infradead.org" , Linux-OMAP , Russell King , Andrew Morton , ext Tony Lindgren , ext Kevin Hilman , "De-Schrijver Peter (Nokia-D/Helsinki)" , "santosh.shilimkar@ti.com" , Ambresh , "Balbi Felipe (Nokia-D/Helsinki)" Subject: Re: [PATCHv4 1/4] procfs: Introduce socinfo under /proc Message-ID: <20100511031447.GB20453@linux-sh.org> References: <1273487857-32281-1-git-send-email-eduardo.valentin@nokia.com> <1273487857-32281-3-git-send-email-eduardo.valentin@nokia.com> <1273487857-32281-1-git-send-email-eduardo.valentin@nokia.com> <1273487857-32281-2-git-send-email-eduardo.valentin@nokia.com> <20100510111259.GA14680@linux-sh.org> <20100510123514.GA11804@besouro.research.nokia.com> <20100510123902.GA15293@linux-sh.org> <20100510125548.GB11804@besouro.research.nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100510125548.GB11804@besouro.research.nokia.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2010 at 03:55:49PM +0300, Eduardo Valentin wrote: > On Mon, May 10, 2010 at 02:39:02PM +0200, ext Paul Mundt wrote: > > Note that in the cpuinfo case there is often special handling for the > > single (or boot CPU) case, such as printing out a descriptor for the > > machine type and so on. You might be better off just extending cpuinfo > > rather than introducing another /proc abstraction, presumably your > > socinfo string will be fixed regardless of whether it's SMP or not. > > Yeah, I wouldn't expect it to change if it SMP or not. It should be fixed. > Previous version of this change was actually extending ARM cpuinfo. The previous > thread starts here: > http://marc.info/?l=linux-omap&m=127304890312365&w=2 > > But, the point of moving that to specific file was that soc info is not really cpu info. > It's up to you of course, but adding an extra file because of SoC/CPU ambiguity seems pretty ugly. Almost all architectures already include machine type descriptors in their cpuinfo output (as ARM does also) and if you can justify that then certainly adding in some SoC-specific bits isn't exactly much of a stretch. These days you should have a pretty strong justification for adding new procfs files, and this is certainly not one of them.