![less proc cpuinfo less proc cpuinfo](https://lojiciels.com/wp-content/uploads/2020/09/1599328212_915_Comment-determiner-le-type-et-la-vitesse-de-mon-processeur.jpg)
Like my original patch, > your patch unconditionally changes the name which could be > considered part of the userspace ABI. > Signed-off-by: Pali Rohár > - > arch/arm/kernel/setup.c | 7 +++++- > 1 file changed, 5 insertions(+), 2 deletions(-) > diff -git a/arch/arm/kernel/setup.c > b/arch/arm/kernel/setup.c index 8a16ee5.fbc7b4f 100644 > - a/arch/arm/kernel/setup.c > +++ b/arch/arm/kernel/setup.c > -875,10 +875,13 void _init setup_arch(char > **cmdline_p) > setup_processor() > mdesc = setup_machine_fdt(_atags_pointer) > - if (!mdesc) > + if (mdesc) > + machine_name = > of_flat_dt_get_machine_name() + else > mdesc = setup_machine_tags(_atags_pointer, > _machine_arch_type) > machine_desc = mdesc > - machine_name = mdesc->name > + if (!machine_name) > + machine_name = mdesc->name > if (mdesc->reboot_mode != REBOOT_HARD) > reboot_mode = mdesc->reboot_mode > I did a similar patch previously. DT provides machine name property which is > specific for board, so use it instead generic one when > possible. > Machine name from board description is some generic name on > DT kernel. On Wednesday 18 June 2014 21:07:35 Rob Herring wrote: Okay if just the machine desc address is printed out. Thread about knowing which machine desc used to boot. I had a follow-up discussion with Grant about his concerns in the The default generic DT machine desc should definitely So something like the below and then change the machine descriptors This needs to be optional and only use the DT name if the machine desc
![less proc cpuinfo less proc cpuinfo](https://image.slidesharecdn.com/procintcorei3-141202230501-conversion-gate02/95/proc-int-core-i3-1-638.jpg)
It's arguably not good practice for userspace toĭepend on the name, but there are likely cases that do. Patch unconditionally changes the name which could be considered part > Signed-off-by: Pali Rohár > - > arch/arm/kernel/setup.c | 7 +++++- > 1 file changed, 5 insertions(+), 2 deletions(-) > diff -git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > index 8a16ee5.fbc7b4f 100644 > - a/arch/arm/kernel/setup.c > +++ b/arch/arm/kernel/setup.c > -875,10 +875,13 void _init setup_arch(char **cmdline_p) > setup_processor() > mdesc = setup_machine_fdt(_atags_pointer) > - if (!mdesc) > + if (mdesc) > + machine_name = of_flat_dt_get_machine_name() > + else > mdesc = setup_machine_tags(_atags_pointer, _machine_arch_type) > machine_desc = mdesc > - machine_name = mdesc->name > + if (!machine_name) > + machine_name = mdesc->name > if (mdesc->reboot_mode != REBOOT_HARD) > reboot_mode = mdesc->reboot_mode > DT provides machine name property which is specific for board, so use > it instead generic one when possible. > Machine name from board description is some generic name on DT kernel. 0.1 DKIM_VALID Message has at least one valid DKIM or DK signatureĬontent-Type: text/plain charset="utf-8"Įrrors-To: .org 0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from 0.0 SPF_PASS SPF: sender matches SPF recordĠ.0 FREEMAIL_FROM Sender email is commonly abused enduser mailĠ.1 DKIM_SIGNED Message has a DKIM or DK signature, Trust Ġ.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends 0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at , X-Spam-Report: SpamAssassin version 3.4.0 on summary: Subject: Re: ARM: /proc/cpuinfo: Use DT machine name when possible WV6OE2+fkZlN0opDJxtuN+FiTbe7rha815CElXYyvuvACiEpVgQ+cokLZlfRy53k5rXV MEJ4IdXY9mSYcH9jvigUmFYk42JUC7T6f+boqE1+tYz9DxJ7ywKZPqTtKMDEf6O1pg7nĨddtLxXriU/jvc44tuK5R0y2No7t0HJAM3vDAN52FIHLRwUAIJZIdcj8vzRnpyfb/lOE YSHZXCTBeMsR8FzMK6v/zoERm+aMgFSOkMyDt7yRG2kyvKw6nZNVDz35ASNbPMjMpK7l :cc:content-type:content-transfer-encoding īh=3yEXyBY1vRP9KntBGrq62BC5sEVzFjevzftaY8OG7g0= ī=t/HoOqNpJAbSOvGNNmbnvNfQSXBs圜nsDi5IKN+wQSnGajboOWExIoeCk6BKf9CM29
![less proc cpuinfo less proc cpuinfo](https://i0.wp.com/finderding.com/wp-content/uploads/2018/01/CPUspeed.png)
H=mime-version:in-reply-to:references:from:date:message-id:subject:to
![less proc cpuinfo less proc cpuinfo](https://i.imgur.com/iuEeEhm.png)
Received: from ()īy with esmtps (Exim 4.80.1 #2 (Red Hat Received: from localhost ( helo=)īy with esmtp (Exim 4.80.1 #2 (Red Hat Linux))