Skip to contentSkip to conversation

ARC: extable: Enable sorting at build time

PATCH In review Vineet Gupta 3 participants 5 messages Nov 15, 2013 – Nov 20, 2013 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARC: extable: Enable sorting at build time

Avoids wasting cycles at boot specially on slower simulators

Cc David Daney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Francois Bedard <[email protected]>
---
 arch/arc/Kconfig      | 1 +
 scripts/sortextable.c | 5 +++++
 2 files changed, 6 insertions(+)
arch/arc/Kconfig +1 -0
index 91dbb2757afd..080580216301 100644
@@ -8,6 +8,7 @@
 
 config ARC
 	def_bool y
+	select BUILDTIME_EXTABLE_SORT
 	select CLONE_BACKWARDS
 	# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
 	select DEVTMPFS if !INITRAMFS_SOURCE=""
scripts/sortextable.c +5 -0
index 7c2310c5b996..e3fb1c36ed0f 100644
@@ -31,6 +31,10 @@
 #include <tools/be_byteshift.h>
 #include <tools/le_byteshift.h>
 
+#ifndef EM_ARCOMPACT
+#define EM_ARCOMPACT	93
+#endif
+
 #ifndef EM_AARCH64
 #define EM_AARCH64	183
 #endif
@@ -244,6 +248,7 @@ do_file(char const *const fname)
 	case EM_S390:
 		custom_sort = sort_relative_table;
 		break;
+	case EM_ARCOMPACT:
 	case EM_ARM:
 	case EM_AARCH64:
 	case EM_MIPS:
Signature · 1 line
1.8.1.2
#1 lore raw

Ping ? people OK if I take this via arc tree (after baking it in linux-next for some time).

-Vineet

Quoted 47 lines · Vineet Gupta

Avoids wasting cycles at boot specially on slower simulators

Cc David Daney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Francois Bedard <[email protected]>
---
 arch/arc/Kconfig      | 1 +
 scripts/sortextable.c | 5 +++++
 2 files changed, 6 insertions(+)
arch/arc/Kconfig +1 -0
index 91dbb2757afd..080580216301 100644
@@ -8,6 +8,7 @@
 
 config ARC
 	def_bool y
+	select BUILDTIME_EXTABLE_SORT
 	select CLONE_BACKWARDS
 	# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
 	select DEVTMPFS if !INITRAMFS_SOURCE=""
scripts/sortextable.c +5 -0
index 7c2310c5b996..e3fb1c36ed0f 100644
@@ -31,6 +31,10 @@
 #include <tools/be_byteshift.h>
 #include <tools/le_byteshift.h>
 
+#ifndef EM_ARCOMPACT
+#define EM_ARCOMPACT	93
+#endif
+
 #ifndef EM_AARCH64
 #define EM_AARCH64	183
 #endif
@@ -244,6 +248,7 @@ do_file(char const *const fname)
 	case EM_S390:
 		custom_sort = sort_relative_table;
 		break;
+	case EM_ARCOMPACT:
 	case EM_ARM:
 	case EM_AARCH64:
 	case EM_MIPS:
#2 lore raw

Dne 19.11.2013 12:08, Vineet Gupta napsal(a):

Quoted 2 lines

Ping ? people OK if I take this via arc tree (after baking it in linux-next for some time).

It makes more sense to add it to the arc tree than kbuild. If that's what you are asking?

Thanks,
Michal

Quoted 58 lines

-Vineet

Quoted 40 lines · Vineet Gupta

Avoids wasting cycles at boot specially on slower simulators

Cc David Daney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Francois Bedard <[email protected]>
---
 arch/arc/Kconfig      | 1 +
 scripts/sortextable.c | 5 +++++
 2 files changed, 6 insertions(+)
arch/arc/Kconfig +1 -0
index 91dbb2757afd..080580216301 100644
@@ -8,6 +8,7 @@
 
 config ARC
 	def_bool y
+	select BUILDTIME_EXTABLE_SORT
 	select CLONE_BACKWARDS
 	# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
 	select DEVTMPFS if !INITRAMFS_SOURCE=""
scripts/sortextable.c +4 -0
index 7c2310c5b996..e3fb1c36ed0f 100644
@@ -31,6 +31,10 @@
 #include <tools/be_byteshift.h>
 #include <tools/le_byteshift.h>
 
+#ifndef EM_ARCOMPACT
+#define EM_ARCOMPACT	93
+#endif
+
 #ifndef EM_AARCH64
 #define EM_AARCH64	183
 #endif

scripts/sortextable.c do_file(char const *const fname) · line 254

Quoted 7 lines
scripts/sortextable.c +1 -0
@@ -244,6 +248,7 @@ do_file(char const *const fname)
 	case EM_S390:
 		custom_sort = sort_relative_table;
 		break;
+	case EM_ARCOMPACT:
 	case EM_ARM:
 	case EM_AARCH64:
 	case EM_MIPS:

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
Quoted 5 lines · Michal Marek

Dne 19.11.2013 12:08, Vineet Gupta napsal(a):

Quoted 2 lines

Ping ? people OK if I take this via arc tree (after baking it in linux-next for some time).

It makes more sense to add it to the arc tree than kbuild. If that's what you are asking?

Yep, that's what I was asking (and fishing for a ACK or two which I now have thanks to David).
Patch added to ARC for-curr so it gets a decent -next exposure before sending over to Linus in 3.13 cycle.

Thx,
-Vineet

Acked-by on v1 1/1
#4 lore raw
In reply to Vineet Gupta
Quoted 7 lines · Vineet Gupta

Avoids wasting cycles at boot specially on slower simulators

Cc David Daney <[email protected]>
Cc Michal Marek <[email protected]>
Cc Francois Bedard <[email protected]>

I haven't tested it, but this looks sane.

I have no opinion about the path this should take towards Linus' tree.

Quoted 41 lines
---
  arch/arc/Kconfig      | 1 +
  scripts/sortextable.c | 5 +++++
  2 files changed, 6 insertions(+)
arch/arc/Kconfig +1 -0
index 91dbb2757afd..080580216301 100644
@@ -8,6 +8,7 @@
 
  config ARC
  	def_bool y
+	select BUILDTIME_EXTABLE_SORT
  	select CLONE_BACKWARDS
  	# ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev
  	select DEVTMPFS if !INITRAMFS_SOURCE=""
scripts/sortextable.c +5 -0
index 7c2310c5b996..e3fb1c36ed0f 100644
@@ -31,6 +31,10 @@
  #include <tools/be_byteshift.h>
  #include <tools/le_byteshift.h>
 
+#ifndef EM_ARCOMPACT
+#define EM_ARCOMPACT	93
+#endif
+
  #ifndef EM_AARCH64
  #define EM_AARCH64	183
  #endif
@@ -244,6 +248,7 @@ do_file(char const *const fname)
  	case EM_S390:
  		custom_sort = sort_relative_table;
  		break;
+	case EM_ARCOMPACT:
  	case EM_ARM:
  	case EM_AARCH64:
  	case EM_MIPS: