linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM: thumb: Have the machine name indicate operation in thumb mode.
@ 2011-05-13 19:53 Vadim Bendebury
  2011-05-14  9:59 ` Catalin Marinas
  0 siblings, 1 reply; 16+ messages in thread
From: Vadim Bendebury @ 2011-05-13 19:53 UTC (permalink / raw)
  To: linux-arm-kernel


This is a cosmetic change, adding a '_thumb' prefix to the
'Hardware' line in /proc/cpuinfo. Tested as follows:

localhost ~ # dmesg | grep thumb
[    0.000000] Machine: kaen_thumb
localhost ~ # grep '^Hardware' /proc/cpuinfo
Hardware        : kaen_thumb
localhost ~ #

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
---
 arch/arm/include/asm/mach/arch.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
index bf13b81..c7445a5 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -51,12 +51,18 @@ extern struct machine_desc *machine_desc;
  * Set of macros to define architecture features.  This is built into
  * a table by the linker.
  */
+#ifdef CONFIG_THUMB2_KERNEL
+#define NAME_SUFFIX	"_thumb"
+#else
+#define NAME_SUFFIX	""
+#endif
+
 #define MACHINE_START(_type,_name)			\
 static const struct machine_desc __mach_desc_##_type	\
  __used							\
  __attribute__((__section__(".arch.info.init"))) = {	\
 	.nr		= MACH_TYPE_##_type,		\
-	.name		= _name,
+	.name		= _name NAME_SUFFIX,
 
 #define MACHINE_END				\
 };
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread
* [PATCH 1/1] ARM: thumb: Have the machine name indicate operation in thumb mode.
@ 2011-05-12  0:31 Vadim Bendebury
  0 siblings, 0 replies; 16+ messages in thread
From: Vadim Bendebury @ 2011-05-12  0:31 UTC (permalink / raw)
  To: linux-arm-kernel

This is a cosmetic change, adding a '_thumb' prefix to the
'Hardware' line in /proc/cpuinfo. Tested as follows:

localhost ~ # dmesg | grep thumb
[    0.000000] Machine: kaen_thumb
localhost ~ # grep '^Hardware' /proc/cpuinfo
Hardware        : kaen_thumb
localhost ~ #

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
---
 arch/arm/include/asm/mach/arch.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
index bf13b81..c7445a5 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -51,12 +51,18 @@ extern struct machine_desc *machine_desc;
  * Set of macros to define architecture features.  This is built into
  * a table by the linker.
  */
+#ifdef CONFIG_THUMB2_KERNEL
+#define NAME_SUFFIX	"_thumb"
+#else
+#define NAME_SUFFIX	""
+#endif
+
 #define MACHINE_START(_type,_name)			\
 static const struct machine_desc __mach_desc_##_type	\
  __used							\
  __attribute__((__section__(".arch.info.init"))) = {	\
 	.nr		= MACH_TYPE_##_type,		\
-	.name		= _name,
+	.name		= _name NAME_SUFFIX,
 
 #define MACHINE_END				\
 };
-- 
1.7.3.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-05-26 13:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13 19:53 [PATCH 1/1] ARM: thumb: Have the machine name indicate operation in thumb mode Vadim Bendebury
2011-05-14  9:59 ` Catalin Marinas
2011-05-14 10:02   ` Russell King - ARM Linux
2011-05-16 12:16     ` Dave Martin
2011-05-16 14:32       ` Nicolas Pitre
2011-05-16 14:43         ` Dave Martin
2011-05-18 20:59           ` Vadim Bendebury (вб)
2011-05-18 22:27             ` Nicolas Pitre
2011-05-18 22:33               ` Russell King - ARM Linux
2011-05-18 22:49                 ` Nicolas Pitre
2011-05-18 22:57                   ` Russell King - ARM Linux
     [not found]                     ` <BANLkTinS4XR-QrCsmhStROxkJEy1-PwCTA@mail.gmail.com>
2011-05-26 13:01                       ` Russell King - ARM Linux
2011-05-26 13:56                         ` Dave Martin
2011-05-26 13:59                           ` Russell King - ARM Linux
2011-05-19  8:36                 ` Dave Martin
  -- strict thread matches above, loose matches on Subject: below --
2011-05-12  0:31 Vadim Bendebury

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).