[PATCH] ARM: /proc/cpuinfo: Use DT machine name when possible
Russell King - ARM Linux
linux at arm.linux.org.uk
Thu Dec 4 02:59:08 PST 2014
On Wed, Dec 03, 2014 at 06:33:08PM -0600, Rob Herring wrote:
> On Mon, Nov 24, 2014 at 4:19 PM, Pali Rohár <pali.rohar at gmail.com> wrote:
> > There is no "/serial-number" property in kernel:
> >
> > $ ls -l -a /sys/bus/soc/devices/soc0/
> > drwxr-xr-x 3 0 0 0 Jan 1 00:00 .
> > drwxr-xr-x 18 0 0 0 Jan 1 00:00 ..
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 family
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 machine
> > drwxr-xr-x 2 0 0 0 Jan 1 00:00 power
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 revision
> > lrwxrwxrwx 1 0 0 0 Jan 1 00:00
> > subsystem -> ../../bus/soc
> > -r--r--r-- 1 0 0 4096 Jan 1 00:00 type
> > -rw-r--r-- 1 0 0 4096 Jan 1 00:00 uevent
>
> Wrong place. If you put /serial-number in your DT, then it will be in
> /proc/device-tree/serial-number.
>
> If you want to wire that up to /proc/cpuinfo, I would be fine with that.
That would be fine for me too. Then it's just a matter of how to copy
the contents of the ATAG into the DT (I assume it's possible in a
similar way to the memory and command line information.) That's
something I know nothing about though.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel
mailing list