* [PATCH] ARM: Use 'model' property to set machine_name from Device Tree @ 2014-07-07 1:53 ` Chanwoo Choi 0 siblings, 0 replies; 8+ messages in thread From: Chanwoo Choi @ 2014-07-07 1:53 UTC (permalink / raw) To: linux-arm-kernel This patch use 'model' property from Device Tree to set machine_name. The arm64 has already got the machine_name from Device Tree. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- arch/arm/kernel/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 8a16ee5..698616f 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p) if (!mdesc) mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); machine_desc = mdesc; +#if CONFIG_OF + machine_name = of_flat_dt_get_machine_name(); +#else machine_name = mdesc->name; +#endif if (mdesc->reboot_mode != REBOOT_HARD) reboot_mode = mdesc->reboot_mode; -- 1.8.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: Use 'model' property to set machine_name from Device Tree @ 2014-07-07 1:53 ` Chanwoo Choi 0 siblings, 0 replies; 8+ messages in thread From: Chanwoo Choi @ 2014-07-07 1:53 UTC (permalink / raw) To: linux Cc: santosh.shilimkar, will.deacon, catalin.marinas, akpm, damm, ard.biesheuvel, olof, kyungmin.park, sw0312.kim, linux-arm-kernel, linux-kernel, Chanwoo Choi This patch use 'model' property from Device Tree to set machine_name. The arm64 has already got the machine_name from Device Tree. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- arch/arm/kernel/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 8a16ee5..698616f 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p) if (!mdesc) mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); machine_desc = mdesc; +#if CONFIG_OF + machine_name = of_flat_dt_get_machine_name(); +#else machine_name = mdesc->name; +#endif if (mdesc->reboot_mode != REBOOT_HARD) reboot_mode = mdesc->reboot_mode; -- 1.8.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] ARM: Use 'model' property to set machine_name from Device Tree 2014-07-07 1:53 ` Chanwoo Choi @ 2014-08-14 1:04 ` Chanwoo Choi -1 siblings, 0 replies; 8+ messages in thread From: Chanwoo Choi @ 2014-08-14 1:04 UTC (permalink / raw) To: linux-arm-kernel On 07/07/2014 10:53 AM, Chanwoo Choi wrote: > This patch use 'model' property from Device Tree to set machine_name. > The arm64 has already got the machine_name from Device Tree. > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > --- > arch/arm/kernel/setup.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > index 8a16ee5..698616f 100644 > --- a/arch/arm/kernel/setup.c > +++ b/arch/arm/kernel/setup.c > @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p) > if (!mdesc) > mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); > machine_desc = mdesc; > +#if CONFIG_OF > + machine_name = of_flat_dt_get_machine_name(); > +#else > machine_name = mdesc->name; > +#endif > > if (mdesc->reboot_mode != REBOOT_HARD) > reboot_mode = mdesc->reboot_mode; > Ping. Best Regards, Chanwoo Choi ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: Use 'model' property to set machine_name from Device Tree @ 2014-08-14 1:04 ` Chanwoo Choi 0 siblings, 0 replies; 8+ messages in thread From: Chanwoo Choi @ 2014-08-14 1:04 UTC (permalink / raw) To: Chanwoo Choi Cc: linux, santosh.shilimkar, will.deacon, catalin.marinas, akpm, damm, ard.biesheuvel, olof, kyungmin.park, sw0312.kim, linux-arm-kernel, linux-kernel On 07/07/2014 10:53 AM, Chanwoo Choi wrote: > This patch use 'model' property from Device Tree to set machine_name. > The arm64 has already got the machine_name from Device Tree. > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > --- > arch/arm/kernel/setup.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > index 8a16ee5..698616f 100644 > --- a/arch/arm/kernel/setup.c > +++ b/arch/arm/kernel/setup.c > @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p) > if (!mdesc) > mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); > machine_desc = mdesc; > +#if CONFIG_OF > + machine_name = of_flat_dt_get_machine_name(); > +#else > machine_name = mdesc->name; > +#endif > > if (mdesc->reboot_mode != REBOOT_HARD) > reboot_mode = mdesc->reboot_mode; > Ping. Best Regards, Chanwoo Choi ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: Use 'model' property to set machine_name from Device Tree 2014-08-14 1:04 ` Chanwoo Choi @ 2014-08-14 7:40 ` Russell King - ARM Linux -1 siblings, 0 replies; 8+ messages in thread From: Russell King - ARM Linux @ 2014-08-14 7:40 UTC (permalink / raw) To: linux-arm-kernel On Thu, Aug 14, 2014 at 10:04:42AM +0900, Chanwoo Choi wrote: > On 07/07/2014 10:53 AM, Chanwoo Choi wrote: > > This patch use 'model' property from Device Tree to set machine_name. > > The arm64 has already got the machine_name from Device Tree. > > > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > > --- > > arch/arm/kernel/setup.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > > index 8a16ee5..698616f 100644 > > --- a/arch/arm/kernel/setup.c > > +++ b/arch/arm/kernel/setup.c > > @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p) > > if (!mdesc) > > mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); > > machine_desc = mdesc; > > +#if CONFIG_OF > > + machine_name = of_flat_dt_get_machine_name(); > > +#else > > machine_name = mdesc->name; > > +#endif > > > > if (mdesc->reboot_mode != REBOOT_HARD) > > reboot_mode = mdesc->reboot_mode; > > > > Ping. This has come up before, and the decision was against exposing this. Thanks. -- FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: Use 'model' property to set machine_name from Device Tree @ 2014-08-14 7:40 ` Russell King - ARM Linux 0 siblings, 0 replies; 8+ messages in thread From: Russell King - ARM Linux @ 2014-08-14 7:40 UTC (permalink / raw) To: Chanwoo Choi Cc: santosh.shilimkar, will.deacon, catalin.marinas, akpm, damm, ard.biesheuvel, olof, kyungmin.park, sw0312.kim, linux-arm-kernel, linux-kernel On Thu, Aug 14, 2014 at 10:04:42AM +0900, Chanwoo Choi wrote: > On 07/07/2014 10:53 AM, Chanwoo Choi wrote: > > This patch use 'model' property from Device Tree to set machine_name. > > The arm64 has already got the machine_name from Device Tree. > > > > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> > > --- > > arch/arm/kernel/setup.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c > > index 8a16ee5..698616f 100644 > > --- a/arch/arm/kernel/setup.c > > +++ b/arch/arm/kernel/setup.c > > @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p) > > if (!mdesc) > > mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); > > machine_desc = mdesc; > > +#if CONFIG_OF > > + machine_name = of_flat_dt_get_machine_name(); > > +#else > > machine_name = mdesc->name; > > +#endif > > > > if (mdesc->reboot_mode != REBOOT_HARD) > > reboot_mode = mdesc->reboot_mode; > > > > Ping. This has come up before, and the decision was against exposing this. Thanks. -- FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] ARM: Use 'model' property to set machine_name from Device Tree 2014-07-07 1:53 ` Chanwoo Choi @ 2014-08-14 12:51 ` Catalin Marinas -1 siblings, 0 replies; 8+ messages in thread From: Catalin Marinas @ 2014-08-14 12:51 UTC (permalink / raw) To: linux-arm-kernel On Mon, Jul 07, 2014 at 02:53:11AM +0100, Chanwoo Choi wrote: > This patch use 'model' property from Device Tree to set machine_name. > The arm64 has already got the machine_name from Device Tree. FWIW, we removed this entirely from arm64 (see commit d7a49086f2 "arm64: cpuinfo: print info for all CPUs"). -- Catalin ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: Use 'model' property to set machine_name from Device Tree @ 2014-08-14 12:51 ` Catalin Marinas 0 siblings, 0 replies; 8+ messages in thread From: Catalin Marinas @ 2014-08-14 12:51 UTC (permalink / raw) To: Chanwoo Choi Cc: linux@arm.linux.org.uk, santosh.shilimkar@ti.com, Will Deacon, akpm@linux-foundation.org, damm@opensource.se, ard.biesheuvel@linaro.org, olof@lixom.net, kyungmin.park@samsung.com, sw0312.kim@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org On Mon, Jul 07, 2014 at 02:53:11AM +0100, Chanwoo Choi wrote: > This patch use 'model' property from Device Tree to set machine_name. > The arm64 has already got the machine_name from Device Tree. FWIW, we removed this entirely from arm64 (see commit d7a49086f2 "arm64: cpuinfo: print info for all CPUs"). -- Catalin ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-08-14 12:52 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-07-07 1:53 [PATCH] ARM: Use 'model' property to set machine_name from Device Tree Chanwoo Choi 2014-07-07 1:53 ` Chanwoo Choi 2014-08-14 1:04 ` Chanwoo Choi 2014-08-14 1:04 ` Chanwoo Choi 2014-08-14 7:40 ` Russell King - ARM Linux 2014-08-14 7:40 ` Russell King - ARM Linux 2014-08-14 12:51 ` Catalin Marinas 2014-08-14 12:51 ` Catalin Marinas
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.