linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nicholas Piggin <npiggin@gmail.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: Nicholas Piggin <npiggin@gmail.com>
Subject: [PATCH] powerpc: build time sort extable
Date: Fri,  7 Oct 2016 22:29:41 +1100	[thread overview]
Message-ID: <20161007112941.20073-1-npiggin@gmail.com> (raw)

Can we just switch this on? Powerpc does not use relative extables
(that's a nice exercise left for the reader), so it should just use
the standard sort.

This patch seems to work, famous last words...

Sorting probably only takes a few ms on any real hardware, but on on
very large kernel configs, extable sorting can take several seconds in
simulators and be a noticable cost to booting.

---
 arch/powerpc/Kconfig  | 1 +
 scripts/sortextable.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 927d2ab..2340483 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -85,6 +85,7 @@ config ARCH_HAS_DMA_SET_COHERENT_MASK
 config PPC
 	bool
 	default y
+	select BUILDTIME_EXTABLE_SORT
 	select ARCH_MIGHT_HAVE_PC_PARPORT
 	select ARCH_MIGHT_HAVE_PC_SERIO
 	select BINFMT_ELF
diff --git a/scripts/sortextable.c b/scripts/sortextable.c
index f453b7c..30337e1 100644
--- a/scripts/sortextable.c
+++ b/scripts/sortextable.c
@@ -324,6 +324,8 @@ do_file(char const *const fname)
 	case EM_MICROBLAZE:
 	case EM_MIPS:
 	case EM_XTENSA:
+	case EM_PPC:
+	case EM_PPC64:
 		break;
 	}  /* end switch */
 
-- 
2.9.3

             reply	other threads:[~2016-10-07 11:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 11:29 Nicholas Piggin [this message]
2016-10-10  4:13 ` [PATCH] powerpc: build time sort extable Michael Ellerman

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=20161007112941.20073-1-npiggin@gmail.com \
    --to=npiggin@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.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).