]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootchart: use get_proc_field and PROC_CPUINFO_MODEL 1415/head
authorAaro Koskinen <aaro.koskinen@nokia.com>
Wed, 30 Sep 2015 12:57:55 +0000 (15:57 +0300)
committerAaro Koskinen <aaro.koskinen@nokia.com>
Wed, 30 Sep 2015 12:57:55 +0000 (15:57 +0300)
commitf2d28e80bc6260c90396e9fc798d559775dbde23
treeacf71075ab7d3c78135a4de5cdb3088cfb43ad8e
parent8cf3a4a3c54c82e48b9b600fdb81b77f2c03a469
bootchart: use get_proc_field and PROC_CPUINFO_MODEL

Use get_proc_field and PROC_CPUINFO_MODEL to get the CPU type. Also don't
fail if it missing, instead restore the old behaviour and print "Unknown".

Fixes the following error seen with v225 on powerpc:

Unable to read module name from cpuinfo.
Error generating svg file: No such file or directory
src/bootchart/svg.c