linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: vbendeb@chromium.org (Vadim Bendebury)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] ARM: thumb: Have the machine name indicate operation in thumb mode.
Date: Wed, 11 May 2011 17:31:40 -0700	[thread overview]
Message-ID: <mailman.230.1305315309.1530.linux-arm-kernel@lists.infradead.org> (raw)

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

             reply	other threads:[~2011-05-12  0:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12  0:31 Vadim Bendebury [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mailman.230.1305315309.1530.linux-arm-kernel@lists.infradead.org \
    --to=vbendeb@chromium.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).